Changing Layout by Changing Templates

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Changing Layout by Changing Templates

Post by macangelo »

Hi,

I have a phpwcms page with about 50 pages in the meantime. To have a new layout I created a new one, gave it a different name and applied it only to one page to show my client.

Now she said great - I want it. As far as I understood templates are stored in the db so can't just change file names of the templates. Applying a new template to 50 pages is also not my favourite idea of spending my time ;-) - does anybody have an idea how to do that faster?

Thanks a lot
macangelo
Pappnase

Post by Pappnase »

hello mac

i had one simple idea! it should be work (but i can not grant for it)! :? delete the old one and set the new one to default!
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

Ups, thanks for the idea - but, I don't dare.

I think I go for creating a third template, copying and pasting the old layout into this one, then copying the second one into the first ...

but thanks for the thought. Have a great sunny one...

Macangelo
GreenNuggs
Posts: 34
Joined: Fri 9. Apr 2004, 01:14
Location: Boston, MA. USA

Post by GreenNuggs »

Uh, all you have to do is set the new layout and template to default. You don't have to delete either of them.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

I don't think that will work if the artile are already created GN.
once an article is created it is assigned the default template and that lemplates assosiated layout. once the tamplate is set, regardless of how it was set it will continue to use that tamplate until changed manually. The default box is a 'one time only offer' for the life of the assigned template. By deleting the assigned template all articles assosiated to it revert to using the default template.

I think the smart money is on the temp template idea. it's safer and easy to do.

of course, when i read the post origonally i thought he had fifty artilces each needing a unique template - this is deffinately something a customer would ask for :D
Post Reply