Welcome to Geeklog, Anonymous Saturday, April 19 2025 @ 01:27 pm EDT
Geeklog Forums
Preventing Geeklog search From Searching Certain Static Pages
Anonymous
Anonymous
Is there anyway to prevent the built in site search, from searching certain static pages. Thanks in advance for your help.
8
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not with Static Pages 1.1. You'll either have to install Static Pages 1.2 or wait for Geeklog 1.3.8 (which includes Static Pages 1.3).
Both 1.2 and 1.3 support permissions (just like in stories, etc.), so you can set the permissions such that only certain users can see (and thus search) these static pages.
bye, Dirk
8
11
Quote
Anonymous
Anonymous
Thanks a lot fro the idea, but it isn't quite what i want. I use certain
static pages as custom error pages, so I want everybody to be able
to see them when necessary, but i don't want them to clutter up
search results. Is there anyway to just prevent the Search function
from searching static pages at all since I don't really use them for
much else.
8
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I see. If you simply remove (or rename or comment out) the two functions plugin_searchtypes_staticpages() and plugin_dopluginsearch_staticpages() from the static pages' functions.inc file, then static pages won't be searched any more.
bye, Dirk
10
11
Quote
All times are EDT. The time is now 01:27 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content