PostNuke Community

Support at your fingertips

search block layout modification?  Top

  • I am using Postnuke version 0.764, and have the following question/situation.


    I have a theme I am working on, and in the 'master.htm' template I have placed the following snippet (copy/pasted from the pnDefault theme) into the header area of my template so I have a search block:

    Code

    <!--[pnml name="_SEARCH" assign="search_label"]-->
    <!--[search active="faqs, stories" label=$search_label class="pn-normal"]-->


    The problem I am having is that I would like to do all of the following in my theme(s), but do not know which file(s) need editing, or if there is a template I can use to accomplish this:
    • in one situation, I would like to remove the word 'Search' from the exterior of the block
    • in another situation, I would like to simply change the color of the word 'Search' that is already displayed -- but for some reason cannot do it with CSS
    • I would like the words 'Search site' displayed within the textbox
    • (most important) would like a button for users to click that says 'Submit'


    Thank you for your help
  • You can edit this by copying /modules/Xanthia/plugins/function.search.php to /themes/YOURTHEMENAME/plugins/function.search.php. Edit that PHP file to suit your needs.

    I think that the plugin in /themes is called before the Xanthia-plugin, so this should work. Do not forget to clear all caches and compiled templates (search the forum if you do not understand these terms).

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • while i expected this to work, it did not. I modified the file, and added it to the following directory (just to confirm it's going where it should):

    /themes/myTHEMENAME/plugins/function.search.php

    -- I also tried :
    /themes/YOURTHEMENAME/Xanthia/plugins/function.search.php

    ...just in case, but that did not work either.

    Is there another file somewhere?
  • Make sure caching in Xanthia and pnRender is OFF, and force template compilation is on.
    Then, when editing the plugin in /modules/Xanhia/plugins directly, changes should be seen immediately.

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • thank you for your help -- you helped me solve my problem. I appreciate your time Teb.

This list is based on the users active over the last 60 minutes.