Need to get a container ID using a taglib
Martin White <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
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