tags for static sites + search tags function

4 replies
Howdy, folks

Wondering if anyone knows a solution for this problem:

- I have a static site (pages are php; not built on a CMS)

- I'd like to add a limited,small set of tags to the articles on that site

- then, when the links to those tags are clicked, a search results page is returned for anything classified under that tag


I found this which might help with the search capability:

Tech Talk Point Add Website Search to a Static Site Using Sphider with PHP and MYSQL

And this post:

The Problems With Tags and Tagging Lorelle on WordPress

...about adding "index.php?s=TAG+HERE" to the link so as to search tags.


So... what it looks like I need to do is:

1. install Sphider

2. group the site via categories (I don't know how, but I'm sure there's info on how to do that over at www.Sphider.eu)

3. write down the numbers for each of the categories (i.e. tags)

4. set the link in the tags to "mysite-com/search.php?catid=xxx[numbers from Step 3 here]"


-----------------------------------------

If you'd be so kind, my questions are:

1. Does this look right?

2. Is there a simpler way to do it?

Thanks very much!

TheNightOwl
#function #search #sites #static #tags

Trending Topics