3.7.2009 How to use page alias as body id in CMS Made Simple

Yes, it’s simple as the CMS itself.

Just make make a User Defined Tag “page_alias”. The code for UDT is

global $gCms;
print($gCms->variables[’page_name’]);

Then in the template’s body tag use

<body id=”{page_alias}”>

Now you can use CSS to change background or whatever on different pages.

Yhteystiedot: puh. +358 40 7055 832, mikko(a)mikkohopia.net, alappa sosiaaliseksi: LinkedIn | facebook | twitter
RSS