Display news depending what page is being viewed
Posted: Wed Feb 27, 2008 8:38 pm
Hi,
I guess this is a documentation question also.
I'm looking for a list of all of the functions/methods/variables etc that each object has. i.e. if $content has a ->title variable accessable etc. Where can I find this? I couldn't find it in the API
Basically what I'm trying to do in a template is:
but I don't know if the title object supports that.
Any hints?
I guess this is a documentation question also.
I'm looking for a list of all of the functions/methods/variables etc that each object has. i.e. if $content has a ->title variable accessable etc. Where can I find this? I couldn't find it in the API

Basically what I'm trying to do in a template is:
Code: Select all
{if $entry->title == "Home"}
{* Start News *}
<div id="news">
<h2>News</h2>
{news number='2' detailpage='news'}
</div>
{* End News *}
{/if}
Any hints?