Hi all,
I am looking to render a paragraph by specifying its handle (here the
variable src). I believe the following should do exactly this in
magnolia 4.0 and higher:
HierarchyManager mgr =
MgnlContext.getHierarchyManager(ContentRepository.WEBSITE);
Content uriContent = mgr.getContent(src);
MagnoliaTemplatingUtilities mgnl = (MagnoliaTemplatingUtilities)
pageContext.getAttribute("mgnl", PageContext.REQUEST_SCOPE);
mgnl.renderParagraph(uriContent);
Unfortunately we are running 3.6.5, has anyone an idea how I would do
this in 3.6.5?
Best,
Sebastian
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------