Page 1 of 1

customContent / Search module - limiting results

Posted: Mon Aug 10, 2009 10:35 am
by lampsie
Hi,

I have certain sections of my site hidden behind an FEU/customcontent setup, and this is all working fine. Where I'm getting a little stuck is in limiting results on the non-logged in side of the site's Search function. When I search for a term that is in the 'hidden' pages, it shows up in results. If I click a result, it does indeed give me a 'you must be logged in' error, but I would prefer if these results did not appear at all.
I could just disable indexing for these pages, but then I would lose ability for logged in users to search their protected pages.

I note than the Search module has a 'modules' parameter, but I cannot find any info on what or how this works or might do what I need. I also note the customContent module has ability to pass results through other modules, but again I'm unsure if this is what I need.

What I would like: the search function will ignore pages that are using custom content module, but will include them if client is logged in.

Can anyone help?

Thanks :)
lampsie

Re: customContent / Search module - limiting results

Posted: Sun Sep 02, 2012 4:43 am
by urheat
I just realised the same problem. Has this changed?

It would be great, if:
- if a page is protected content and user is not logged in, he/she can't search the pages
- if user is logged in, he/she can search protected content pages

Re: customContent / Search module - limiting results

Posted: Sun Sep 02, 2012 6:13 am
by staartmees
to prevent hidden pages to show up in the searchresults, uncheck "This page is searchable" under the Options of a page.

Re: customContent / Search module - limiting results

Posted: Sun Sep 02, 2012 8:13 am
by urheat
Thanks staartmees, but I assume that the option prevents logged users to search protected content.

Re: customContent / Search module - limiting results

Posted: Sun Sep 02, 2012 9:36 am
by staartmees
indeed but it solves one part of your problem.

Re: customContent / Search module - limiting results

Posted: Thu May 08, 2014 10:19 am
by urheat
Is this changed?


- A visitor can search protected content
- If you set the page "not available for search", then protected content can't be searched at all.

Re: customContent / Search module - limiting results

Posted: Thu Sep 04, 2014 6:13 pm
by Dr.CSS
Is the page set to Protected Content type..?

It helps to give as much info as possible...

more info == more help

Re: customContent / Search module - limiting results

Posted: Thu Sep 04, 2014 6:24 pm
by urheat
Dr.CSS wrote:Is the page set to Protected Content type..?
Yes.

Re: customContent / Search module - limiting results

Posted: Fri Sep 05, 2014 7:24 am
by chandra
Maybe it would be the easiest way to have two search modules - one for visitors (only non protected content will be indexed) and one for loggedin users (all content will be indexed).

It's not so difficult to clone a module ;) (yeah, I like the clone function of Xoops CMS). Could be a base for a commercial request.

But maybe it would be a good feature for CMSMS 2.1? The possibility to let run a module in different instances (like ListIt2).