> Congratulations!!!
> But pay attention that the "title" can be stored also into a mono-language
> attribute (not only multi-language).
> So, the code would be:
> ...
> ...
> <c:forEach var="content" items="${contentList}">
> <jacms:content contentId="${content}"
> attributeValuesByRoleVar="attributeValuesVar" />
> <c:if test="${null != attributeValuesVar}">
> <c:catch var="exceptionMap"><wp:info key="currentLang" var="currentLangVar"
> /><c:set var="titleVar"
> value="${attributeValuesVar['jacms:title'][currentLangVar]}" /></c:catch>
> <c:if test="${null != exceptionMap}"><c:set var="titleVar"
> value="${attributeValuesVar['jacms:title']}" /></c:if>
> </c:if>
> ${titleVar}
> </c:forEach>
> ...
> ...
> Eu
> 2012/1/16 dalborgo <ma...@dalborgo.it>
> > I understand, thanks.
> > I can access to the attribute defined as 'title' with this code:
> > <c:forEach var="content" items="${contentList}">
> > <jacms:content contentId="${content}"
> > attributeValuesByRoleVar="role" />
> > ${role['jacms:title'][currentLangVar]}
> > </c:forEach>
> > I hope to do something similar with all attribute.
> > On 16 Gen, 11:54, Giovanni Cocco <gianni.g.co...@gmail.com> wrote:
> > > 2012/1/11 dalborgo <ma...@dalborgo.it>
> > > > Hi, I'm Marco Dal Borgo, I'm an Italian student.
> > > Hi Marco,
> > > > I use JAPS 2.0 and i have a trouble.
> > > > I'm tring to access to a content attribute in a showlet with no
> > > > result.
> > > > For example this is my code (showlet.jsp)
> > > > <c:forEach var="content" items="${contentList}" begin="0" end="3">
> > > > <jacms:content contentId="${content}" modelId="12" />
> > > > </c:forEach>
> > > > It renders my content with a specific content model. How can I have
> > > > access to an attribute of the content?
> > > > When I define a content model it's very easy to do that, just typing
> > > > $content.attribute.text. Is there one way to do it Inside a showlet
> > > > definition?
> > > The right way to access an attribute is with a model for proper rendering
> > > of the content. The tag jacms:content is to show a content rendered with
> > a
> > > proper model. You have to do some development to load a content in the
> > page
> > > context (as a not rendered entity) and to access is attributes.
> > > > Thanks.
> > > GC
> > > > --
> > _________________________________________________________________________
> > > > Entando Group
> > > > japs-platform@googlegroups.com
> > > >http://groups.google.com/group/japs-platform
> > _________________________________________________________________________
> > > > Follow us on Identi.ca:http://identi.ca/japsplatform
> > > > Follow us on Twitterhttp://twitter.com/jAPSPlatform/
> > > > Follow us on Linkedin
> > > >http://www.linkedin.com/groups?gid=2570784&trk=hb_side_g
> > > > Follow us on Slidesharehttp://www.slideshare.net/japsplatform
> > > > Follow us on IdeaScalehttp://japsplatform.ideascale.com/
> > --
> > _________________________________________________________________________
> > Entando Group
> > japs-platform@googlegroups.com
> >http://groups.google.com/group/japs-platform
> > _________________________________________________________________________
> > Follow us on Identi.ca:http://identi.ca/japsplatform
> > Follow us on Twitterhttp://twitter.com/jAPSPlatform/
> > Follow us on Linkedin
> >http://www.linkedin.com/groups?gid=2570784&trk=hb_side_g
> > Follow us on Slidesharehttp://www.slideshare.net/japsplatform
> > Follow us on IdeaScalehttp://japsplatform.ideascale.com/