how to use a page value in the news module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm
Location: Nijmegen, the Netherlands

how to use a page value in the news module

Post by robbedoes »

To display a kind of calender on a page I want to use a news tag. If there is a way to pass the page alias of the current page to a news template the calender can show the entries for the current page based on the value in a custom field, say cms_selflink.

Will this do?

{alias assign=pagealias}
{news etc}
to get {if $entry->cms_selflink == $pagealias} working???

Thanks,

Rob
Post Reply

Return to “Developers Discussion”