Forums / Cotonti / General / Custom Footer

RaisenBran
#1 2011-07-07 21:25
Hello, In genoa when you go to config.php you can enable custom header and footers. I have the setting on TRUE. I was just wondering if a certain category can have a custom footer (and header)? And if this isn't a cotonti feature can you please add it! It would make a nice addition! So something like this: FOOTER.page.CAT.tpl So for example, this works: page.news.tpl And this: footer.page.tpl But not this: footer.page.news.tpl

Dit bericht is bewerkt door RaisenBran (2011-07-08 17:43, 12 jaren ago)
urlkiller
#2 2011-07-07 23:35
it only allows you to add footer.CATEGORY.tpl or header for different categorys... not for pages... try working out a solid category structure!!! and you dont need that...
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
pieter
#3 2011-07-08 05:48

What would be the difference between footer.news.tpl and footer.page.news.tpl?

If you want a specific footer for one page. You can use an IF-structure inside it and check on page-alias.

... can we help you ...
Azazello
#4 2011-07-08 15:23
Use plugin "Extra custom header and footer" Extra custom header and footer depending on: page alias or category, list category, forum section id or category, plug code. http://www.cotonti.com/datas/users/extrahf_21.zip
RaisenBran
#5 2011-07-08 17:47
#30118 pieter:

What would be the difference between footer.news.tpl and footer.page.news.tpl?

If you want a specific footer for one page. You can use an IF-structure inside it and check on page-alias.

Oh my bad I made a mistake, I'm sorry, it's fixed now. I was kinda in a rush. What I meant is that footer.page.tpl and page.news.tpl could not be combined...

Added 1 minute later:

#30128 Azazello:
Use plugin "Extra custom header and footer" Extra custom header and footer depending on: page alias or category, list category, forum section id or category, plug code. http://www.cotonti.com/datas/users/extrahf_21.zip

Added 31 seconds later:

How exactly do I use your plugin Azazello?

Added 7 minutes later:

Nevermind! for example: footer.list.news.tpl works!! I can make custom pages for my lists and pages. Thanks Aazello!

Added 11 minutes later:

Actually Azazello, I'm unsure on how to use the alias function. I tried footer.alias.radio.tpl but that didn't work with the setting on: 

Search footer for page: alias

I also tried:

Search footer for page: alias and category

I tried many other things, help?


Dit bericht is bewerkt door RaisenBran (2011-07-08 18:20, 12 jaren ago)
Azazello
#6 2011-07-09 05:00
RaisenBran
#7 2011-07-09 19:58