Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Search From Xanthia Theme
  • Posted: 27.03.2005, 22:02
     
    Wendell
    rank:
    Professional 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.

    --
    DWX Logo
  • Posted: 28.03.2005, 00:45
     
    jmvedrine
    rank:
    Professional 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.
  • Posted: 28.03.2005, 01:40
     
    Wendell
    rank:
    Professional Professional
    registered:
     February 2004
    Status:
    online
    Posts:
    1038
    Oh! Somehow I missed that. Thanks!! :D

    --
    DWX Logo

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula