Page layout with multiple templates

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
marco

Page layout with multiple templates

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marco

Post 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. :)
Post Reply