[opencms-dev] Search list elements and display containerpage

Daniel Seidel d.seidel at alkacon.com
Tue Jan 10 13:14:37 CET 2017


Hi Martin,

now I understand your problem. The option "addContentInfo" is not what 
you expect it to be. It only influences the publishing when choosing 
"This page" for publishing. Then changed list entries will appear in the 
listed resources and hence can be published in the context of publishing 
the page. The option has no influence on how things are indexed. The 
list items are not indexed for the page anyway.

Typically the elements in the lists have detail pages. If so, you can 
configure your full-text search such that the elements itself (the xml 
contents) are found, and then you can link to the detail page.

Best, Daniel.

Am 10.01.2017 um 12:40 schrieb Martin Kucharczyk:
> Thanks Daniel.
>
> I want to implement a full text search (i.e. "q=xyz+abc" or 
> "q=xyz+abc&fq=type:containerpage").
> Adding "fq=type:containerpage" is ok, but then I still won't get a 
> result containing my list-element, because the list element is 
> actually not placed on the containerpage.
> The list-element is loaded by cms:search.
>
> [Quote]
> Besides handing over a configuration to <cms:search>, we specify 
> addContentInfo. If set to true, the content that is collected in the 
> list is treated as part of the page on publish. Hence, when you 
> publish the page and an element in the list - even if on a page of the 
> list not visible at the moment - is published as related resource of 
> the page well.
> [/Quote]
>
> From the description "addContentInfo" is what I need, but it is not 
> working.
> Maybe I am missing something here or do I just misunderstand, what 
> "addContentInfo" is used for?
>
>
> ------------------------------------------------------------------------
> *Von: *"Daniel Seidel" <d.seidel at alkacon.com>
> *An: *opencms-dev at opencms.org
> *Gesendet: *Dienstag, 10. Januar 2017 12:23:19
> *Betreff: *Re: [opencms-dev] Search list elements and display 
> containerpage
>
> Hi Martin,
>
> I do not fully understand what you are doing now, but maybe you are 
> searching not for the things you want. You should use 
> "fq=type:containerpage" in your query to search for container pages 
> only. If you need more advice, please send your query.
>
>
> Best, Daniel.
>
>
> Am 10.01.2017 um 12:05 schrieb Martin Kucharczyk:
>
>     Hello!
>
>     I have the following problem using OpenCms 10.0.1
>
>     I have implemented several lists using this documentation:
>     http://documentation.opencms.org/opencms-documentation/demos/lists-and-detail-pages-ii/
>     Now I also have a search, that should only display containerpages.
>
>     I have added addContentInfo="true" to the cms:search tag.
>     When executing my search (or if I am using handleSolrSelect) the
>     result only contains the list-elements but not the containerpage
>     or a link to the containerpage.
>
>     I have have rebuild my indices, added new lists and elements and
>     published all.
>     Still no result.
>     What am I missing here?
>     Thanks in advance!
>
>     Best regards
>     Martin
>
>
>     _______________________________________________
>     This mail is sent to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list, please visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
> -- 
> Daniel Seidel
>
> Alkacon Software GmbH & Co. KG  - The OpenCms Experts
> http://www.alkacon.com  -http://www.opencms.org      
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-- 
Kind Regards,
Daniel.
  
-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170110/f88985f8/attachment.htm>


More information about the opencms-dev mailing list