Jahia Template Forum > QueryTag with Nested...

0 (0 Good)
0 (0 Bad)

QueryTag with Nested Container

by  peters »  2011/06/07 20:00

Hi All
I have a requirement.in which i have to make gallerylist that have imagelist ,and each imagelist has image ,date and caption.

so i need to display gallery and image on the basis of latest publish image .

i have done following entry in cnd.

[web_templates:imageListContainer] gt; jnt:container
date imageDate
bigText imageCaption
file imageFile

[web_templates:galleryList]
  • QueryTag with Nested Container
    2011/06/07 20:00

    peters Hi All<br/>I have a requirement.in which i have to make gallerylist that have imagelist ,and each imagelist has image ,date and caption.<br/><br/>so i need to display gallery and image on the basis of latest publish image .<br/><br/>i have done following entry in cnd.<br/><br/>[web_templates:imageListContainer] gt; jnt:container<br/>date imageDate<br/>bigText imageCaption <br/>file imageFile<br/> <br/>[web_templates:galleryList]

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

    Re: QueryTag with Nested Container

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

    Hello,

    query tags are limited in regards of querying on subcontainer fields in a parent container. But perhaps there is a workaround.
    Your structure is the following assuming that there are always two (sub-)containers:

    [code:1g2xjub0]galleryContainer (list)
    web_templates#58;galleryContainer
    galleryList (list)
    web_templates

    Benjamin Papez (pap@commaro.com)

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

    Re: QueryTag with Nested Container

    by  peters »  2011/06/07 20:00

    Hi Benjamin

    First of all thanks for all your support and help.

    my requirement is as follows:

    i have to displayed the most recent added photo galleries to the site.

    The component will be driven dynamically to the most display the 5 most recent published photo galleries. Only the first image of the gallery is displayed to the user
    in this component.

    When the user hits the end of the 5 galleries displayed, disable to scroll arrows.

    so could you please suggest how to go in this case.
  • Re: QueryTag with Nested Container
    2011/06/07 20:00

    peters Hi Benjamin<br/><br/>First of all thanks for all your support and help.<br/><br/>my requirement is as follows:<br/><br/>i have to displayed the most recent added photo galleries to the site.<br/><br/>The component will be driven dynamically to the most display the 5 most recent published photo galleries. Only the first image of the gallery is displayed to the user<br/>in this component.<br/><br/>When the user hits the end of the 5 galleries displayed, disable to scroll arrows.<br/><br/>so could you please suggest how to go in this case.

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

    Re: QueryTag with Nested Container

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

    Hello,

    as mentioned in my comment yesterday, I do not understand, why you defined three container definitions. I think that two would be enough.

    Does a gallery have a title and then MULTIPLE image-lists, where each list again has a title and several image containers, or does a gallery have a title and just ONE list of image containers ? This is important information for the container defintions and the queries.

    Because when you then say:

    [quote:2rhr24ig]i have to displayed the most recent added photo galleries to the site[/quote:2rhr24ig]

    are you talking about the galleryContainer or galleryList from your definition ? But if a gallery has just one list of image containers, I would use just these two definitions, which seem more logical to me:

    [code:2rhr24ig]
    #91;web_templates

    Benjamin Papez (pap@commaro.com)

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

    Re: QueryTag with Nested Container

    by  peters »  2011/06/07 20:00

    Thanks a lot benjamin .it is exactly what i want . [:)]
  • Re: QueryTag with Nested Container
    2011/06/07 20:00

    peters Thanks a lot benjamin .it is exactly what i want . [:)]

  • Number of messages  35
    Registration date Jun 7, 2011
    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