Jahia Dev Forum > Custom search on...

0 (0 Good)
0 (0 Bad)

Custom search on multiple nodetypes

by  raphaelmoly »  2015/03/03 16:31

Hi,

Is there a way to make a custom search form on multiple nodetypes without using facets ?

I tried to put 2 nodetypes (nt:file and jnt:navMenu for example) in the search tag nodeType (http://www.jahia.org/tags/search) like that :

<search:nodeType value="nt:file,jnt:navMenu" display="false" />

And many other ways but it's not working.

Thanks !

 

  • Custom search on multiple nodetypes
    2015/03/03 16:31

    raphaelmoly <p>Hi,</p> <p>Is there a way to make a custom search form on multiple nodetypes without using facets ?</p> <p>I tried to put 2 nodetypes (nt:file and jnt:navMenu for example)&nbsp;in the search tag nodeType&nbsp;(http://www.jahia.org/tags/search) like that :</p> <p>&lt;search:nodeType value=&quot;nt:file,<span style="line-height: 20.7999992370605px;">jnt:navMenu</span>&quot; display=&quot;false&quot; /&gt;</p> <p>And many other ways but it&#39;s not working.</p> <p>Thanks !</p> <p>&nbsp;</p>

  • Number of messages  1
    Registration date Mar 3, 2015
    0 (0 Good)
    0 (0 Bad)

    Re : Custom search on multiple nodetypes

    by  qlamerand »  2015/03/05 11:03

    Hi Raphael,
    You can only search on one nodetype. The value containing several types seperated by a coma is used to construct a selector when display='true'.
    You'll have to query on a common supertype or mixin.
    Regards,
    Quentin

  • Re : Custom search on multiple nodetypes
    2015/03/05 11:03

    qlamerand <p>Hi Raphael,<br /> You can only search on one nodetype. The value containing several types seperated by a coma is used to construct a selector when display=&#39;true&#39;.<br /> You&#39;ll have to query on a common supertype or mixin.<br /> Regards,<br /> Quentin</p>

  • Number of messages  28
    Registration date Mar 5, 2015
    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