getBoundContentId() with pageContext attributes !
Farnoosh <[email protected]>
| Newsgroups | gmane.comp.cms.infoglue.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, thank you.
I could do by passing from JAVA codes to JSP tags and using the pageContext
attribute like this :
<structure:boundPage id="testPage" propertyName="testPage"/>
<c:set var="idPage" value="${testPage.siteNodeId}" />
<%
Integer idMyPage = (Integer)pageContext.getAttribute("idPage");
BasicTemplateController bTC =
(BasicTemplateController)request.getAttribute("org.infoglue.cms.deliver.templateLogic");
ComponentLogic cL= bTC.getComponentLogic();
ContentVO contentVo = cL.getBoundContent(idMyPage, "Article", true);
pageContext.setAttribute("idMyContent", contentVo.getId());
%>
<content:contentAttribute id="title" contentId="${idMyContent}"
attributeName="Title"/>
<c:out value="${title}" escapeXml="false" />
I dont know if it is the best way !!
Farnoosh
--
View this message in context: http://www.nabble.com/Applying-getBoundContentId%28%29-upon-another-SiteNode---tp22059119p22117457.html
Sent from the Infoglue - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H