> getContextPath() will return an empty string if the webapp is ROOT.
Yes I thought of that, but now realize that the 2.0 setup may have
author running as the ROOT webapp, even though the ROOT directory is
still there.
> loadPage.name()?? Are you referring to the taglib <cms:loadPage>?
Well, yes, I'm trying to implement content re-use on 2.0 using
loadPage...
<cms:contentNodeIterator
contentNodeCollectionName="leftParagraphs">
<cms:adminOnly>
<cms:editBar/>
</cms:adminOnly>
<cms:includeTemplate/>
</cms:contentNodeIterator>
<cms:adminOnly>
<cms:newBar contentNodeCollectionName="leftParagraphs"
paragraph="ImageText,TextImage"/>
</cms:adminOnly>
<cms:ifEmpty contentNodeCollectionName="leftParagraphs">
<cms:loadPage path="home"/>
<cms:contentNodeIterator
contentNodeCollectionName="leftParagraphs">
<cms:includeTemplate />
</cms:contentNodeIterator>
<cms:loadPage path="${page_uri2[0]}"/>
</cms:ifEmpty>
The 'leftparagraphs' content collection gets attached to the 'home'
page. If you're on, say, an 'about_us' page, the CMS will load the
'leftParagraphs' content from 'home', but must then re-load the
'about_us' page afterwards. Use the author bars on 'about_us' to a
paragraph, & the 'home' 'leftParagraphs' content gets over rode.
I thought I just needed the page name, and not the path from webroot,
but after re-checking my 2.1 setup I see that I do.
The above still didn't work on 2.0, possibly because I sliced off too
much of the path.
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------