Jahia Template Forum > Accessing contents...

0 (0 Good)
0 (0 Bad)

Accessing contents by use of JSTL

by  mesdocs »  2011/06/07 20:02

Hello,

I am looking for a solution to access containers in a page referenced as a link in my currentPage.
I looked at the Jahia TCK templates (Jahia Test Compatibility Kit) to find a solution.
The test_templates/contentview/expressions/workarea.jsp file contains source code I think could solve my problem, replacing currentPage by the pageBean I want to access :

lt;c:set var=
  • Accessing contents by use of JSTL
    2011/06/07 20:02

    mesdocs Hello,<br/><br/>I am looking for a solution to access containers in a page referenced as a link in my currentPage.<br/>I looked at the Jahia TCK templates (Jahia Test Compatibility Kit) to find a solution.<br/>The test_templates/contentview/expressions/workarea.jsp file contains source code I think could solve my problem, replacing currentPage by the pageBean I want to access :<br/><br/>lt;c:set var=

  • Number of messages  53
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Accessing contents by use of JSTL

    by  pap@commaro.com »  2011/06/07 20:02

    Hello,

    what exactly do you want to do ? Access all containers of the page or just the ones of a particular container list ?

    The following line:
    lt;c:set var=

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Accessing contents by use of JSTL

    by  mesdocs »  2011/06/07 20:02

    Hello Benjamin,

    Here is what I want to do :
    I want to access the unique field of a single container which is on a linked page.

    Thanks to the answer to the following topic [url:1tt590zv]http#58;//www
  • Re: Accessing contents by use of JSTL
    2011/06/07 20:02

    mesdocs Hello Benjamin,<br/><br/>Here is what I want to do :<br/>I want to access the unique field of a single container which is on a linked page.<br/><br/>Thanks to the answer to the following topic [url:1tt590zv]http#58;//www

  • Number of messages  53
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Accessing contents by use of JSTL

    by  pap@commaro.com »  2011/06/07 20:02

    Hi,

    yes there is a better and more performant way without even having to use scriptlets.

    Something like this:

    lt;template:absoluteContainerList name=

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page