customContent / Search module - limiting results

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

customContent / Search module - limiting results

Post 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
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: customContent / Search module - limiting results

Post 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
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: customContent / Search module - limiting results

Post by staartmees »

to prevent hidden pages to show up in the searchresults, uncheck "This page is searchable" under the Options of a page.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: customContent / Search module - limiting results

Post by urheat »

Thanks staartmees, but I assume that the option prevents logged users to search protected content.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: customContent / Search module - limiting results

Post by staartmees »

indeed but it solves one part of your problem.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: customContent / Search module - limiting results

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: customContent / Search module - limiting results

Post by Dr.CSS »

Is the page set to Protected Content type..?

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

more info == more help
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: customContent / Search module - limiting results

Post by urheat »

Dr.CSS wrote:Is the page set to Protected Content type..?
Yes.
chandra

Re: customContent / Search module - limiting results

Post 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).
Post Reply

Return to “Modules/Add-Ons”