cotonti.com : Theme Certain Pages https://www.cotonti.com Последние сообщения в теме Cotonti en Wed, 04 Nov 2026 03:34:19 -0000 badsey
i only need it for selected pages, just to show its a different part of the Charity site]]>
чт, 23 сен 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.]]>
чт, 23 сен 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]]>
чт, 23 сен 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).]]>
чт, 23 сен 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]]>
чт, 23 сен 2010 23:02:35 -0000