Jahia Template Forum > Query Tags with...

0 (0 Good)
0 (0 Bad)

Query Tags with boolean

by  mesdocs »  2011/06/07 19:56

Hello,

Using query tags I want to select containers with a boolean property set to 'true'.
Unfortunately my query does not select any containers.

Here is my query :

[code:25xqciot]lt;query
  • Query Tags with boolean
    2011/06/07 19:56

    mesdocs Hello,<br/><br/>Using query tags I want to select containers with a boolean property set to 'true'. <br/>Unfortunately my query does not select any containers.<br/><br/>Here is my query :<br/><br/>[code:25xqciot]lt;query

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

    Re: Query Tags with boolean

    by  pap@commaro.com »  2011/06/07 19:56

    Hi Mesdocs,

    the query itself seems ok to me.

    Could you please add the following lines to WEB-INF\etc\config\log4j.xml

    [code:wvbwxxbf]
    lt;category name=

    Benjamin Papez (pap@commaro.com)

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

    Re: Query Tags with boolean

    by  mesdocs »  2011/06/07 19:56

    Benjamin,

    Here is the console output

    [code:3bc0p5az]2009-05-06 17#58;15
  • Re: Query Tags with boolean
    2011/06/07 19:56

    mesdocs Benjamin,<br/><br/>Here is the console output<br/><br/>[code:3bc0p5az]2009-05-06 17#58;15

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

    Re: Query Tags with boolean

    by  pap@commaro.com »  2011/06/07 19:56

    Hello Mesdocs,

    are you sure you are using the equalTo tag and not the notEqualTo, because the minus in front of true is the notEqualTo behaviour?

    You could also use Luke ([url=http#58;//www

    Benjamin Papez (pap@commaro.com)

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

    Re: Query Tags with boolean

    by  mesdocs »  2011/06/07 19:56

    Benjamin,

    You're right. I had change the query to test the notEqualTo tag but it did not give any result either.

    Using Luke, I was able to browse the container and see the 'false' and 'true' values in the jahia.containerfield_my_templates_newscontainer_newshome field.

    mesdocs.
  • Re: Query Tags with boolean
    2011/06/07 19:56

    mesdocs Benjamin,<br/><br/>You're right. I had change the query to test the notEqualTo tag but it did not give any result either.<br/><br/>Using Luke, I was able to browse the container and see the 'false' and 'true' values in the jahia.containerfield_my_templates_newscontainer_newshome field.<br/><br/>mesdocs.

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

    Re: Query Tags with boolean

    by  pap@commaro.com »  2011/06/07 19:56

    Hi Mesdocs,

    it may be a bug with something we already fixed as it perfectly works in my current development environment for the next release and there was some recent development in that area.

    Are you using the Jahia 6 community edition or the early adopters release ?

    Could you also please open the Documents tab in Luke and in Browse by term select the jahia.containerfield_my_templates_newscontainer_newshome field and then push the quot;First Term

    Benjamin Papez (pap@commaro.com)

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

    Re: Query Tags with boolean

    by  mesdocs »  2011/06/07 19:56

    Benjamin,

    I have reinstalled Jahia Community (r25203) and deployed my templates.
    I don't have the problem anymore.

    Modifications of instanciated containers seems not to be a good idea.

    mesdocs.
  • Re: Query Tags with boolean
    2011/06/07 19:56

    mesdocs Benjamin,<br/><br/>I have reinstalled Jahia Community (r25203) and deployed my templates.<br/>I don't have the problem anymore.<br/><br/>Modifications of instanciated containers seems not to be a good idea.<br/><br/>mesdocs.

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

    Re: Query Tags with boolean

    by  mesdocs »  2011/06/07 19:56

    Hi,

    the problem appears after I have executed the index process.

    Regards,

    Mesdocs.
  • Re: Query Tags with boolean
    2011/06/07 19:56

    mesdocs Hi,<br/><br/>the problem appears after I have executed the index process.<br/><br/>Regards,<br/><br/>Mesdocs.

  • Number of messages  53
    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