That's what a (python) developer here said when I asked him if I had the
syntax right.

I was sure. Why wouldn't I be sure of the '.html'?

We're talking about Magnolia virtual URI's. Does Magnolia output
anything but HTML? Could I conceivably output a 'contact_us.do'?

In that case, I should split the page_uri by the '.' and take the first
half.

But yes, what you have there is what I was thinking of, but not looking
forward to spending all day getting the syntax right.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 14, 2005 12:43 PM
To: [email protected]
Subject: Re: [magnolia-user] sharing contents

> in Python it would be something like...
 
> page_uri = string.strip(page_uri[:5])


If you know for sure that the .html is there always then you can do
string.substring(0,
string.length() - 5)

./alex



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to