Forums / Cotonti / Core Labs / Archive / add "item available" to list.php

ez
#21843 2009-12-31 04:46
In list.inc.php i do not see the following code.. (see page.inc.php for the same code)
It would be nice to add it there. That way I can detect if a page should be on the list or not. Also I want to show the "NON" published items to admins and owners only.
Also I made 1 tag in page called "PAGE_AVAILABLE" that i can use in xtemplate to make my skin programming simpler.. (and would like that in list too)
The PAGE_AVAILABLE tag i also added to page.inc.php.

Tell me what you all think....

In list.inc.php (2 tiny corehacks):
//============================
// LLS start modification	
//============================
if ($pag['page_begin']>$sys['now_offset'])
{
	$pag['page_text'] = $L['pag_notavailable'].sed_build_timegap($sys['now_offset'], $pag['page_begin_noformat']);
	$t->assign("PAGE_TEXT", $pag['page_text']);
// LLS modification	
	$t->assign("PAGE_AVAILABLE", "0");
	}
else
{
	$t->assign("PAGE_AVAILABLE", "1");

//============================
// LLS END modification
//============================

==- I say: Keep it EZ -==

Dit bericht is bewerkt door ez (2009-12-31 17:30, 14 jaren ago)