[opencms-dev] Search list elements and display containerpage
Martin Kucharczyk
kucharczyk at silpion.de
Tue Jan 10 12:40:05 CET 2017
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?
----- Ursprüngliche Mail -----
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170110/630b2fab/attachment.htm>
More information about the opencms-dev
mailing list