PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  Search Mod

Moderated by: Support Team

Bottom
Search Mod

  • Link to this postingPosted: 08.05.2008, 16:42
    Profile
    enchanted_illusions
    rank:
    pnFreshman pnFreshman
    registered:
     January 2008
    Status:
    offline
    last visit:
    09.05.08
    Posts:
    16
    I have included a search bar in my Xanthia theme using the following code:
    Code
    <!--[pnml name=_SEARCH assign=searchlabel]--><!--[search label=$searchlabel]-->

    I am trying to find the location of the code that this include calls. I have tried editing the code in the modules/Search/index.php and in includes/blocks/search.php to no avail. I want to add a value to the search box so that I can remove the search label, ie.- the word "Search" inside the actual text area. Easy bit of coding, I just can't find where to do it. Can anyone be of help?



    edited by: enchanted_illusions, May 08, 2008 - 09:12 PM
  • Link to this postingPosted: 09.05.2008, 03:08
    Profile
    Topiatic
    rank:
    pnProfessional pnProfessional
    registered:
     November 2003
    Status:
    offline
    last visit:
    09.05.08
    Posts:
    1530
    The search plugin is a theme plugin and should be located in modules/Xanthia/plugins... it's system/Theme/plugins in .8 so I'm assuming the path.

    -----
    viewTopiaryWorks($twWorks, $twRosterMaster)
  • Link to this postingPosted: 09.05.2008, 11:14
    Profile Homepage
    espaan
    rank:
    pnHelper pnHelper
    registered:
     August 2003
    Status:
    offline
    last visit:
    09.05.08
    Posts:
    237
    Yup, it is in modules/Xanthia/plugins in 0.764.
    A lot of parameters are available in the plugin function.search.php, so specifying a value and keeping the label empty is no problem.
    Code
    <!--[search label="" value="something"]-->

    Parameters:
    Code
    * Smarty function to display a search form
     *
     * Available parameters:
     *  - active            a comma-separated list of modules to be searched.
     *  - bool              the boolean operation to be performed (AND or OR)
     *  - label             the label to show before the search box
     *  - button            the text to be displayed on the search button
     *  - size              the size of the input box
     *  - value             the default value of the input box
     *  - search_tabindex   the tabindex of the Search box (defaults to 0)
     *  - button_tabindex   the tabindex of the Search button (defaults to 0)
     *  - search_accesskey  the access key of the Search box
     *  - button_accesskey  the access key of the Search button
     *  - class             the CSS class to assign to the form
     *
     * Example
     * <!--[search]-->
     *
     * <!--[pnml name="_SEARCH" assign="search_label"]-->
     * <!--[search active="faqs, stories" label=$search_label class="pnsearchform"]-->

  • Link to this postingPosted: 09.05.2008, 18:35
    Profile
    enchanted_illusions
    rank:
    pnFreshman pnFreshman
    registered:
     January 2008
    Status:
    offline
    last visit:
    09.05.08
    Posts:
    16
    Thank you so much for your help! icon_smile

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  Search Mod

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke