sorry, version 1.2

I'm now just using a simple routine as follows:

function GetURIRoot(){
    var helper = new FlowHelper();  
    var bits = helper.getRequestURI(cocoon).split("\/");
    return "/" + bits[1] + "/" + bits[2] + "/" + bits[3];
}



Andreas Hartmann wrote:
> 
> Hi Steve,
> 
> stevecam schrieb:
>> Hello,
>> 
>> I have some flowscript that I am using to control display order of lenya
>> pages.
>> 
>> I want to redirect to an error page and I want to pass an absolute url to
>> the cocoon.redirectTo() method.
>> 
>> Currently, it seems I can only set a path relative to the current request
>> (e.g '../error.html') for the site-map to process it correctly, or else,
>> use
>> an absolute uri (e.g 'http://localhost:8080/lenya/tlp/live/error.html').
>> 
>> Out of interest, is there simple way (one function call) to obtain the
>> part
>> of the uri up to and including the 'area' (live vs authoring) using the
>> FlowHelper?
> 
> which Lenya version are you using?
> 
> -- Andreas
> 
> 
> -- 
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getting-the-current-uri-root-in-flowscript-tp14861725p14895732.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to