Forums / Cotonti / Support / Custom Headers in Categories

Custom .tpl for specific pages in a specific category

aiwass
#1 2010-05-22 01:10
I desperately need to solve an issue with custom headers that can be enabled in the datas/config.php. There is absolutely NOTHING when it comes to documentation on this topic of running a site with $cfg['enablecustomhf'] = TRUE;

Just this simple line To enable header.$location.tpl and footer.$location.tpl which in turn doesn't say anything of what the limitations or possibilities are. It says shit to be honesty!

I need to know the follow and I need to know them yesterday (I.E ASAP):
1. Enabling Custom Headers enables me to do what? Possibilities?
2. Limitations I have to consider? What is it I can't do?
3. Can I run custom headers in main categories (pages), subcategories (pages/culture) and sub-subcategories (pages/culture/biographies)?

The reason I'm asking is because I want to introduce Facebook Open Graph Protocol to my website (see left hand side of this post) in different categories with XFBML tags. My website is running Cotonti since the start and LDU before that. Please help!
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
Kort
#2 2010-05-22 01:47
location is no category.
however, you can use blocks like
<!-- IF {PHP.z} == "page" AND {PAGE_CAT} == "culture" --> 
{FILE "skins/lorem/inc/culture.tpl"} 
<!-- ENDIF -->
definitely not a 100% good solution but it might help you out
SED.by - создание сайтов, разработка плагинов и тем для Котонти
aiwass
#3 2010-05-22 15:43
This does not do the trick!

# Kort : location is no category.
however, you can use blocks like
<!-- IF {PHP.z} == "page" AND {PAGE_CAT} == "culture" --> 
{FILE "skins/lorem/inc/culture.tpl"} 
<!-- ENDIF -->
definitely not a 100% good solution but it might help you out
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com