Page 1 of 1

Page layout with multiple templates

Posted: Wed 26. Nov 2003, 02:05
by marco
Here's the question: how do I associate each template with its own page layout?

Example:

I have two templates: a 3 column (default), and 2-col-left (the sample posted on this forum). My page layout that shows up in admin is the one I created for the default template.

I know I can create multiple templates, I can even specify different templates for different categories in the site structure panel (e.g. the 2-col template for News and the 3-col template for Articles) - so far so good - very good, different templates for different pages!

However, it seems that I can not (yet?) associate each template with its own page layout parameters. This results in pages that do not render properly.

If I set the page layout parameters for the 3-col layout, when I view the "News" page which has a 2-col template, the layout is wrong, because the page parameters do not match.

If, on the other hand, I set the page layout parameters for the 2-col template, then I get a bad layout when I view the "articles" page (which uses the 3-col template).

Is there something I am missing here, or there is really only one page layout in effect regardless of what template I specify in the site structure?

Posted: Wed 26. Nov 2003, 02:54
by Oliver Georgi
I'm sorry Marco -

that's what I implement next when I have a little more time (1-2 weeks). Also transfer every config.template_default.inc.php into the database.

Oliver

Posted: Wed 26. Nov 2003, 02:56
by Oliver Georgi
or use the patch work araound or something like that - build simple 1 column and put own designed table inside.

It's easy to extend the phpwcms rendered code for your need

in main block use something like this - </td></tr>...

Search the forum - I have describe that.


Oliver

Posted: Wed 26. Nov 2003, 03:33
by marco
Oliver Georgi wrote:I'm sorry Marco -

that's what I implement next when I have a little more time (1-2 weeks). Also transfer every config.template_default.inc.php into the database.

Oliver
Oh, not a problem at all, I know this is work in progress. Just keep your priorities, sometimes we make far too many requests. :)