Jahia Dev Forum > best way to do search...

0 (0 Good)
0 (0 Bad)

best way to do search with list.glossary

by  rvt »  2016/01/27 20:19

Hey all,

When using list with the glossary view the pager works fine and you can get URL's like : /sites/ACMESPACE/home/glossary.default.html?letter=R when clicking through the glossary list.

However, when using the search engine it always default back to this page : /sites/ACMESPACE/home/glossary.default.html so you don't actually see the content that should have been shown up. Is it possible to instruct the search engine to link to the page /sites/ACMESPACE/home/glossary.default.html?letter=R where the content actually displays?

Cheer,
Ries van twisk
 

 

  • best way to do search with list.glossary
    2016/01/27 20:19

    rvt <p>Hey all,</p> <p>When using list with the glossary view the pager works fine and you can get URL&#39;s like :&nbsp;/sites/ACMESPACE/home/glossary.default.html?letter=R when clicking through the glossary list.<br /> <br /> However, when using the search engine it always default back to this page :&nbsp;/sites/ACMESPACE/home/glossary.default.html so you don&#39;t actually see the content that should have been shown up. Is it possible to instruct the search engine to link to the page&nbsp;/sites/ACMESPACE/home/glossary.default.html?letter=R where the content actually displays?<br /> <br /> Cheer,<br /> Ries van twisk<br /> &nbsp;</p> <p>&nbsp;</p>

  • Number of messages  185
    Registration date Jan 27, 2016
    0 (0 Good)
    0 (0 Bad)

    Re: best way to do search with list.glossary

    by  pap@commaro.com »  2016/01/28 22:39

    Hello Ries,

    please check the file src\main\resources\META-INF\rules.drl in the events module. There is an example how we modify the URL of the search hit with a rule if the found node is of type jnt.event. You can do something similar for your glossary nodes.

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

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

    Re: Re: best way to do search with list.glossary

    by  rvt »  2016/01/29 17:07

    Benjamin,

    thank's for that pointer. It works pefectly.

    Regards,
    Ries

  • Re: Re: best way to do search with list.glossary
    2016/01/29 17:07

    rvt <p>Benjamin,</p> <p>thank&#39;s for that pointer. It works pefectly.</p> <p>Regards,<br /> Ries</p>

  • Number of messages  185
    Registration date Jan 29, 2016
    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