test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • nkamp Friend
    #192300

    Hello,

    We don’t want a label before the input boxes at the contact form but in the input boxes the ‘label’. The same behavior as in the search box.
    I see the input boxes are created with:
    [PHP]
    echo $this->form->getInput(‘contact_name’);
    [/PHP]

    For example, I want to add the next HTML to the contact_name input box:

    onfocus=”if (this.value==’naam…’) this.value=”;” onblur=”if (this.value==”) this.value=’naam’;” value=”naam”

    This is also added to the searchbox if you fill in a value.

    I’ve been looking in the getInput function. But these is not only used for the contact form I think. So to change this is a little be dangerous maybe.

    Otherwise with java script?

    I hope that someone can help me.

    Nico

    Ninja Lead Moderator
    #512424

    Hi Nico,

    This is normal behavior of JOOMLA CORE and has nothing to do with our templates. We do not recommend hacking the Joomla core files.

    But I can guide you to customize the layout com_search of JOOMLA CORE in our template

    + Create com_search folder into templates/ja_puresite/html/ folder

    + Copy components/com_search/views/search/tmpl/default_form.php file and paste to templates/ja_puresite/html/com_search folder

    + Open default_form.php file from template and customize it if you like

    Don’t forget to clear cache from Admin area after making any changes

    Regards

    nkamp Friend
    #512452

    Hello Ninja,

    The path to make a override is slightly different: It must be:

    “Templates…htmlcom_contactcontact.”

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  nkamp 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum