Announcement

#1 2013-09-03 01:10:51

kyp_
Member
2013-06-17
84

Templates - different template for different sub-categories

Hello,

as the subject already said, I would like to use different templates
for a few main-albums, while the majority of main-albums keep the kyp-picture.tpl.

After setting a permalink name for a main-album or sub-album I can
find it under templates in the 2nd column called "Optional URL keyword".

What does not work is, after setting the special-picture.tpl for the special main-album, the sub-albums do not
change, they keep the custom kyp-picture.tpl .

(my custom kyp-picture.tpl is set without any "optional URL keyword")

Any ideas ?

A complicated workaround would be to set a #-custom.picture.tpl for each subfolder,
but it will grow to at least a 100 albums so that would not be much use.

thanks for any help,
cheers
Kyp

Last edited by kyp_ (2013-09-03 01:12:32)


Cheers

Offline

 

#2 2013-09-03 09:10:48

flop25
Piwigo Team
2006-07-06
7037

Re: Templates - different template for different sub-categories

Hi
you were assuming a sort of inheritance among albums for templates, am I right?

I recommend you to use a combo personal plugin using Localfiles editor and an unique custom picture.tpl, or only one picture.tpl : if you do a basic print_t of the global variable $page you might found ways to retrieve the id of the parent albums and so display either code


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-09-04 14:11:45

kyp_
Member
2013-06-17
84

Re: Templates - different template for different sub-categories

If there isnt already a plugin out that can do that or
a config option with true/false, I'm afraid my skills are too low for that ;)

cheers
kyp


Cheers

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact