cotonti.com : Apply another skin for sub-category https://www.cotonti.com Son konu mesajları Cotonti en Thu, 09 Oct 2025 05:19:42 -0000 booka Paz, 02 Mayıs 2010 02:52:47 -0000 pieter http://www.neocrome.net/page.php?id=2278

header.<category>.tpl does not work.
you can make a header.page.tpl, but this not help you.

When trying to load a template file to display the HTML output, under some conditions Seditio/Cotonti will try to load an optional layout. This page sum up the possible names for those optional skin files.

As sample, the line "page.CAT.tpl" means that when trying to display a page (page.php?id=...) that belongs to a category "sports", the engine will first try to use a file page.sports.tpl, and if not found it will go for the default page.tpl

list.CAT.tpl
list.group.CAT.tpl
page.CAT.tpl
page.add.CAT.tpl
page.edit.CAT.tpl
forums.posts.FCAT.FORUM_ID.tpl
forums.topics.FCAT.FORUM_ID.tpl
forums.editpost.FCAT.FORUM_ID.tpl
forums.newtopic.FCAT.FORUM_ID.tpl
users.banned.tpl
users.inactive.tpl
skins/SKIN/plugin.standalone.PLUG.tpl
skins/SKIN/SKIN.LANG.lang.php

---------------

CAT = Category code (string)
CAT = Forum category code (string)
FORUM_ID = Forum (number)
SKIN = Skin code (string)
LANG = Language code (string)
PLUG = Plugin code (string)
]]>
Paz, 02 Mayıs 2010 01:43:11 -0000
booka Paz, 02 Mayıs 2010 01:33:59 -0000 Kort Paz, 02 Mayıs 2010 00:37:22 -0000 booka Paz, 02 Mayıs 2010 00:17:46 -0000 tensh Pzt, 26 Nis 2010 16:26:15 -0000 Trustmaster Paz, 25 Nis 2010 22:20:42 -0000 booka Paz, 25 Nis 2010 21:55:33 -0000 Trustmaster # urlkiller : yeah i guess i understand your problem i had the same you wish to see some

header.<category>.tpl
footer.<category>.tpl
index.<category>.tpl

i wish there would be something like that too...
Custom header/footer templates for categories have existed in Cotonti for ages:
$cfg['enablecustomhf'] = true;
]]>
Paz, 25 Nis 2010 19:59:29 -0000
Kort Paz, 25 Nis 2010 14:42:54 -0000 urlkiller
header.<category>.tpl
footer.<category>.tpl
index.<category>.tpl

i wish there would be something like that too...

a possible solution would be solving this with a plugin. i guess...

any more ideas from the forums?

maybe you should read yourself in that logical block thing with the xtemplate engine.
then you could have severeal different stylesheets (no different templates!!!) and just switch background images, colors etc. with the css file. maybe the way of less resistance]]>
Paz, 25 Nis 2010 10:53:16 -0000
booka
Добавлено 2 Минуты спустя:

for example.. this year we will have a list if artists and '10 skin by default to whole site...
few pages I'll move to '09 subcat (old welcome page, old list of artists, old artists pages)... So the idea is to apply old skin to that subcategory]]>
Cmt, 24 Nis 2010 16:39:12 -0000
urlkiller somwhere in the forums and docu should be a word about it.

the easiest way would be to just copy the old skin from the skins direcotry and save it on your hdd or somewhere else. implement the new one and do the same next year...

other than that you could use different sub styles for every skin. (some dark and white css style for example)

this style can be choosen in the users profile or can be set directly with a mysql query...]]>
Cmt, 24 Nis 2010 08:51:23 -0000
booka
It will require hack? ))) Don't like them...]]>
Cmt, 24 Nis 2010 01:32:29 -0000
Kort Cum, 23 Nis 2010 22:07:07 -0000 booka
I have next question. Last year we used another template and skin for our site (depend on sponsors, main artist etc). This year it will be another template (currently using on www.bestfest.ru).
Is it possible to save old skin for 2009 pages (artists, schedule etc)?]]>
Cum, 23 Nis 2010 21:13:11 -0000