Re: Applying getBoundContentId() upon another SiteNode ?
sito <[email protected]>
| Newsgroups | gmane.comp.cms.infoglue.devel |
|---|---|
| Message-ID | <[email protected]> |
perhaps this function help you ..
public ContentVO getBoundContent(java.lang.Integer siteNodeId,
java.lang.String propertyName,
boolean useInheritance)
http://www.infoglue.org/javadocs/InfoGlue260/org/infoglue/deliver/controllers/kernel/impl/simple/ComponentLogic.html#getBoundContent(java.lang.Integer,%20java.lang.String,%20boolean)
Farnoosh escribió:
Hello every one,
I'm new in InfoGlue !
This question is maybe elementary, but I can not find the answere !!
I have a siteNode_1 who has a template_1.
This template has a component property, named « Article » (binding Content)
wich bindes to a content of Article type.
Beside, I have a SiteNode_2 who has a template_2.
In my template_2, I know the siteNodeId of my siteNode_1.
There, I would like to obtain the contentId of the « Article » of my
template_1.
How sould I do that ?
Well, I know how to obtain the ID of a component property (binding Content)
of somme currentSiteNode like this :
<%
BasicTemplateController templateLogic =
(BasicTemplateController)
request.getAttribute("org.infoglue.cms.deliver.templateLogic") ;
%>
<%= templateLogic.getComponentLogic().getBoundContentId("Article") %>
But how should I do for use the getBoundContentId() function upon another
SiteNode, else than the currentSiteNode ?
Thank you so much for your help.
Farnoosh
--
--------------======ooOO000OOoo======---------------
Vicente Javier Rosselló Ferrer
E-mail: vrossello [arroba] uib.es
Universitat de les Illes Balears - http://www.uib.es
====================================================
------------------------------------------------------------------------------
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
_______________________________________________
Infoglue-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/infoglue-developer