Welcome to Geeklog, Anonymous Saturday, December 28 2024 @ 05:36 am EST

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.
 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
 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.
 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
 Quote

All times are EST. The time is now 05:36 am.

  • 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