Fake Reset button and Add help text to searchable profile

Fake Reset Button

  1. Edit the following file:

In Joomla - administrator/components/com_civicrm/civicrm/templates/CRM/Profile/Form/Search.tpl

In Drupal - sites/all/modules/civicrm/templates/CRM/Profile/Form/Search.tpl

2. Copy the tpl file into another directory for override purposes (e.g.
custom_civicrm/CRM/Profile/Form/1 where 1 represents the profile #).
Make sure to update this directory in the Resource URLs in Global
Settings.

3. Hard code the path to the desired search page and remove javascript action. Example:

    <div id="id_{$groupId}_show" class="section-hidden section-hidden-border">
       <a href="http://www.yourwebsitehere.org/civicrm/profile?reset=1&gid=1"><label>{ts}New Search{/ts}</label></a><br />
    </div>

 

Help Text example in same file:

    <div id="id_{$groupId}">
      <fieldset><legend><a href="#" onclick="hide('id_{$groupId}'); show('id_{$groupId}_show'); return false;"><img src="{$config->resourceBase}i/TreeMinus.gif" class="action-icon" alt="{ts}close section{/ts}"/></a>{ts}Search Criteria{/ts}</legend><br />{ts}Click the Search button without selecting any criteria to search all contacts{/ts}
{else}
    <div>
{/if}

 

 

 

 

Your Inbox, Our Secrets

Email:
Small Nonprofit Web Tips
Organic SEO Tips
Secret CiviCRM User Tips