I'm new to CMSMS but have solid experience with Joomla! and some experience with Drupal. A few days ago I purchased the excellent book CMS Made Simple 1.6: Beginner’s Guide and worked my trhough it almost completely, using CMSMS version 1.7.1. Although I'm still struggling a bit with various concepts, there's only one thing I that got me stuck.
In Chapter 10 of the book Sofia (the author) explains how to use Extra Page Attributes. The example she uses, is hiding news on pages by entering the text "nonews" in the Extra Page Attribute 1 field of a page and adding the following logic to the main template:
{if $node->extra1 != "nonews"}
{news ...}
{/if}
Unfortunately I can not get this to work. I have a two level structure with 5 top level pages: Our Company, Products, Client Center, Contact Us and Sitemap. Only two of them, Our Company and Client Center, have child pages. I entered the "nonews" value in the Extra Page Attribute 1 field of the Contact Us page, but unfortunately the news still shows up. So I entered some debug information in the template to inspect various variables and this is what I see:
- {get_template_vars} displays the expected page_name and page_alias (contact-us).
- {page_attr_key="extra1"} displays "nonews" as expected.
- {$node|print_r} displays information about the wrong $node, namely about page Sitemap.