Limit Display to Homepage

Basti

Administrator
Staff member
At the moment we have no "Only on homepage" tag, the closest is putting it into table_wrapper.html . there it display on every rankings page ( page 1,2,3 etc )
If you would use a real plugin to display your data this could be archived quite easily.

We are planning to add a homepage tag only though. Its nice to have, if it goes smoothly it comes in 0.9, else 1.0
Think Mark started to integrate that already, but i think its not yet usuable as a template tag like
{isfront}blabl{/isfront}
 

Mark

Administrator
Staff member
0.8 and earlier
PHP:
if(empty($FORM['a']) && empty($FORM['app']) && empty($FORM['method']) && empty($FORM['cat'])){
//this must be the front page
}
However in 0.9 release we now have the option to use
PHP:
if(isset($isfront)) {
//this must be the front page
}
 
Top