Hm... that should be: In this caset "foo" or "bar"
of course.
On 07.08.2008, at 15:05, Will Scheidegger wrote:
I remember vaguely having used once a methode where you ad a
discriminator between the filename and the file extension.
http://www.magnolia.info/home.html
http://www.magnolia.info/home.foo.html
http://www.magnolia.info/home.bar.html
result in the same page. But you can catch the discriminator (in
this case "test") and act upon it. Both pages will get cached
propperly if I remember correctly. Unfortunately I don't have the
code by hand right now. But I hope this gives you an idea.
Cheers,
Will
On 07.08.2008, at 14:48, Jon Barber wrote:
Hi,
I'd like to use Magnolia to serve one web site with 2 themes using
magnolia. The themes will consist of different content for the top
and
right hand bar, but the site structure will be exactly the same,
and the
content for the main panel will be identical. I need to make use of
the
caching capability of magnolia, and new pages need to be added to
certain sections. I'd like to have just the one site structure within
the website view.
What's the best way to do this so that adding new content will be
visible on both themes as painlessly as possible ? I'm very
comfortable
with JSP scripting and writing Java code, but I'd like to avoid doing
custom work if need be.
My current thinking is to use a scheme similar the I18n support using
URL prefixing. So for example, say the two themes are foo and bar,
the
URLs would be http://somewhere.com/foo/index.html and
http://somewhere.com/bar/index.html. I'd write a filter to extract
the
prefix and place it in the request context so that the page knows
which
theme to use. This would mean some custom work though.
It looks like virtual URIs might be able to help, or maybe even
sub-templates ?
Any help much appreciated.
Thanks,
Jon.
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------