OK, Magnolia's output can have any extension, or no extension, so I'm
concluding that the page URI should be split by the dot. I think the
resulting string array will be OK if there is no dot and only one
resulting array element.
With no opinion on the best method to implement content reuse, I'm
concluding that this is it...
<%@ page contentType = "text/html;"
import="org.apache.commons.lang.StringUtils" %>
<%
String page_uri = (info.magnolia.cms.core).Path.getOriginalURI(request);
String[] page_uri2 = StringUtils.split(page_uri, ".");
%>
<cms:ifEmpty contentNodeCollectionName="leftParagraphs">
<cms:loadPage path="udhome"/>
<cms:contentNodeIterator
contentNodeCollectionName="leftParagraphs">
<cms:includeTemplate />
</cms:contentNodeIterator>
<cms:loadPage path="<%= page_uri2[0] %>"/>
</cms:ifEmpty>
PDF's where mentioned.
Will Magnolia output text content as a PDF?
Would I need to import someone's PDF class, build my own, or is that
functionality built in?
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 17, 2005 1:12 AM
To: [email protected]
Subject: Re: [magnolia-user] sharing contents
On 14.10.2005, at 21:01, Robert Van Overmeiren wrote:
> In that case, I should split the page_uri by the '.' and take the
> first half.
Please check out StringUtils from Apache Commons. It has everything you
need to make working with Strings a pleasure in Java.
Regards
Boris Kraft
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------