cotonti.com : Theme Certain Pages https://www.cotonti.com Son konu mesajları Cotonti en Sun, 20 Sep 2026 02:41:18 -0000 badsey
i only need it for selected pages, just to show its a different part of the Charity site]]>
Per, 23 Eyl 2010 23:52:28 -0000
GHengeveld
<!-- IF {PHP.id} == 1 AND {PHP.z} == 'page' -->
<link href=https://www.cotonti.com/"your/css/file.css" rel="stylesheet" type="text/css" />
<!-- ENDIF -->

Best to put it in header.tpl with the others. Note that this isn't suitable if you want this applied to many pages.]]>
Per, 23 Eyl 2010 23:38:12 -0000
pieter
Then you can use {PHP.al} to get the alias.

Now you can load a CSS file with eg.
link href=https://www.cotonti.com/"skins/sed-light/{PHP.al}.css" type="text/css" rel="stylesheet" />

You need to make for your example 3 CCS files
alias1.css
alias2.css
alias3.css

Don't forget to load the standard css to.

Or make one CSS and make different classes for the differnt pages.
Make as example alias1 class and you can use
<div class={PHP.al}>

Try if, maybe it is not working exactly.
Maybe not the best way.

Good luck]]>
Per, 23 Eyl 2010 23:34:46 -0000
GHengeveld
- Put the page in a separate category and create a tpl file for the category (page.catname.tpl). Then insert CSS in the template.
- Use javascript to overwrite the CSS for that specific page.
- If you use HTML parsing in the page you can insert the CSS directly (can be external file).]]>
Per, 23 Eyl 2010 23:33:28 -0000
badsey
page.php?id=3 > Default css
page.php?id=5 > Diffrent css
page.php?id=1 > Another diffrent css]]>
Per, 23 Eyl 2010 23:02:35 -0000