LunpaCMS comes with built-in search functionality that currently works with templates, news articles, and employees.
Below are the steps to adding search to a LunpaCMS site:
<form action="/search.cgim" method="post"> <font face=:::map_title_face::: size=2><label for="site_search">Keyword:<label> <input class="searchBox" id="site_search" name="site_search" value="" type="text"> <input value="Search" type="submit"></font> </form>
Only templates marked with the Sitemap option will display in the search results. Templates are automatically indexed (or de-indexed if the sitemap option has been unselected) whenever they are added or edited, so the newest version is always what will be searchable.
News categories can be marked as searchable or not searchable by going into News Manager and clicking on "Manage Categories" and then selecting those that you want to be searchable. All news articles that include that category will show up in the search results. In order to manage non-categorized templates, set the map
:::LOCAL_NEWSMANAGER_SEARCH_UNCATEGORIZED_ARTICLES::: to 1 to make non-categorized articles searchable and 0 to make them not searchable. In order for this change to take effect, the articles will then have to be indexed or de-indexed.
Employees will be searchable if they are not disabled. To search only employees, make sure there is an option in the get_search_form function for employees.
Copyright © 2018 Peregrine Computer Consultants Corp. All rights reserved.
About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries.
The artist is Jennifer Lomax.