I wish to share this tip to give ID and CLASSES to the body of your page (great to use selective Cascading Style Sheets):
<body id="[*alias*]" class="[[GetTemplateName]] [*layout*] [[GetField? &field=`alias` &parent=`1`]]">
- id=alias: gives each page an unique id based on the url alias
- class=GetTemplateName: every page with the same template will share this class
- class=layout: (or any other name) is a custom TV to address special styles
- class=GetField? &field=`alias` &parent=`1`: every page with the same parent will share this class (parent's url alias)
These parameters are YAMS safe.
Using
pagetitle in place of
alias will break in YAMS, can't guarantee unique name and also permits spaces in name, that's a problem with the CSS selector.
I hope someone will find this usefull.
MODx evo 1.5~1.6 ✪ Apache v 2.2.22 ✪ PHP v 5.3.10 ✪ MySQL v 5.1.61
<°'iiii);