lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: Redirect a Lenya page to another URL
Date Wed, 16 Jul 2008 20:37:40 GMT
Hi Dan,

Dan Stromberg schrieb:
> What is a good (hopefully simple) way of redirecting a lenya page to 
> another page outside of lenya?

there are basically two approaches:

1. Create a "redirect" resource type (maybe we should add this to the 
repo since it seems to be a common usage scenario). This is quite 
straightforward. The source could look for instance like this:

   <redirect xmlns="…" uri="http://www.foo.com"/>

You can edit the document with the source editor or write a simple 
usecase to change the uri attribute. An XSLT transforms the source into 
a <meta http-equiv="refresh"/> element.

2. In the upcoming version 2.0.2 it will be possible to assign external 
URLs to sitetree nodes, so clicking on a navigation item will lead you 
to an external page. This functionality is already used on the Lenya 
website.

HTH,

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Mime
View raw message