Re: Need to get a container ID using a taglib
Philippe Vollenweider <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
You can use the getId() methode on bean ContainerBean:
<content:containerList name="emplContainer" id="emplContainerList">
<content:container id="emplContainer">
<a href="?id=<bean:write name="emplContainer"
property="id"/>"><content:textField name="emplFirstName"/></a>
</content:container>
</content:containerList>
At 12.06.2006 00:34, you wrote:
>Hi,
>
>I need to find out the id of a particular container so that I can
>use it in a hyperlink. In scriptlets I can do this using the
>JahiaContainer class' getID() method. Any idea how I can do this with taglibs?
>
>So for example, in the following I would want to replace
><CONTAINER_ID> with some tag that gives me the unique ID for the
>current container of type emplContainer. I can't seem to find
>anything in the taglib doc that gives me this.
>
><content:containerList name="emplContainer" id="emplContainerList">
> <content:container id="emplContainer">
> <a href="?id=<CONTAINER_ID>"><content:textField
> name="emplFirstName"/></a>
> </content:container>
></content:containerList>
>
>Thanks
>Martin
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company