- Moderated by:
- Support
-
- rank:
-
Professional
- registered:
- February 2004
- Status:
- online
- Posts:
- 1038
For my Xanthia theme, I am using the following code for the Search function:
Code
<!--[search label=<b>$search_label</b> class="pnsearchform" button="Search"]-->
It works great for all the standard PN modules... however, it does not search Pagesetter documents. I checked to make sure I had the pagesetter.php in includes/search/, and sure enough, it was there.
To further test, I used the Search module itself from the menu, and it does provide the option to search Pagesetter, checked by default. I also looked at the Search plugin (function.search.php) in the Xanthia module folder, but I don't know enough about PHP yet to make much sense of it.
If you'd like to see what I mean, you can visit my site (http://www.dynawerx.com) and try searching with the built-in search at the top right of the homepage; then you can try searching by selecting "Search" from the "Other Features" area of the dropdown menu.
Any ideas on how to make the Search function via Xanthia perform the same search as from the standard PN Search (via menu)?
Thanks! :)
P.S. I am running PN 0.760 RC3.
--
-
- rank:
-
Professional
- registered:
- January 2004
- Status:
- offline
- last visit:
- 05.09.08
- Posts:
- 633
By default the Xanthia search plugin search the folowing modules : comments, downloads, faqs, reviews, sections, stories, users, weblinks. You can change that passing an active parameter like :
Code
<!--[search active="comments, downloads, faqs, reviews, sections, stories, users, weblinks, pagesetter" label=<b>$search_label</b> class="pnsearchform" button="Search"]-->
All this is explained at the begining of the function.search.php and it is not PHP coding but Smarty coding so (in my opinion) a lot easier to understand.
--
Visit my live reef aquarium.
My Amazon wish list.
