Hi, all

I've just committed to Ragnaroek a new MidCOM feature described in
http://trac.midgard-project.org/ticket/746 : relative style paths.

Normally, MidCOM's style engine uses full style paths for folder
template locations, so for instance your news templates could be in
"/mysite2007/news".

The problem is, Midgard allows running same MidCOM site with multiple
hosts that could use different styles, which would be useful when
preparing facelifts, or for instance a separate "mobile site". But
MidCOM is not aware of this because of the full style paths.

When relative style paths are enabled, MidCOM will prepend current
host style to the path.

So instead of "/mysite2007/news", your news folder would be set with
style "/news". And when on the host using "/mysite2007" style, MidCOM
will read this as "/mysite2007/news", but on host using "/mysite2009"
style as "/mysite2009/news".

Configuration setting is $GLOBALS['midcom_config']['styleengine_relative_paths']

/Henri

-- 
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Skype: henribergius
Jabber: [email protected]
Jaiku: http://bergie.jaiku.com/
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to