Force the search module to search only custom pages

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jonnieb
Forum Members
Forum Members
Posts: 16
Joined: Thu Sep 11, 2008 10:32 pm

Force the search module to search only custom pages

Post by jonnieb »

Hi!

I use CMSMS and the Search Module. Because I have a protected area which i don´t want the search to find, i added Tag to the pages which should not be indexed. This works fine, and the search only finds results on the "free to view" pages.

Now i´m trying to solve the following problem: Once the user is logged in, the search should also worked for the NotSearchable Pages. I had a look on the MySQL tables and thought about saving NotSearchable Pages into another table, but this figured out to be very problematically.

Maybe there is already a module, that allows this way of search?

Best,
Jon
Charmie
Forum Members
Forum Members
Posts: 80
Joined: Tue Mar 03, 2009 3:32 pm

Re: Force the search module to search only custom pages

Post by Charmie »

Hi,

I know I am answering to an old post but thought it relevant to my problem.
I have pages that are only accessed via the FEU and don't want these displayed in a search result.

In the page options I unchecked the 'this page is searchable' option, which seems to work for most sections except the Calendar.
I have a calendar on of the hidden pages with the names and birthdays of children in my Sunday school. For obvious reasons I would like this protected and accessed only by certain members.
It seems that I can stop the content of the page being searchable but not the content of the CalGuys Calendar.
I believe this is because they are child pages of the main page.

Does anyone know how I can block this information being displayed?

Thanks
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Force the search module to search only custom pages

Post by jmcgin51 »

Charmie, I can't help with your problem.  But for the OP, I would think you could use an if/then statement in your template, something like

{if !$ccuser->loggedin()}

{/if}

(you'll have to play with the syntax, since the above is almost certainly not correct)
Post Reply

Return to “Modules/Add-Ons”