On 17 Apr, Chari Daignault wrote:
> Greetings, all!
Greetings!
> Has anyone worked on being able to serve a different layout
> style (template) with pages from the same midgard site/database?
Yes. You have many options for this in Midgard.
First of all, you can create different Styles
for each section. Then just either split your
site into multiple (prefixed) hosts, or assign
the styles to pages individually.
The next option is to use Style and Page elements.
With these you can easily override some style
parts for individual pages or page trees. You
can even override the ROOT element if you want.
The third option would of course be using variables
to handle this all within a single style and element
set. This way you would:
(in a page element or page):
<?php $area = 'main'; ?>
(in the style):
<body
<?php if ($area == 'main') { ?>
bgcolor="#000000"
<?php } else { ?>
bgcolor="#FFFFFF"
<?php } ?>
>
> Chari
/Bergie
--
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
http://www.iki.fi/Henri.Bergius
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]