Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: le5 on 20 August 2015, 09:23:48

Title: overrides
Post by: le5 on 20 August 2015, 09:23:48
I'm using Joomla 3.4.3 with Alexandria Book Library 3.1.0.

I'm trying to create several overrides for your component. One problem I got stuck is about the search view. I realized and managed, that I have to copy also the layouts folder to my html folder.
But I noticed that some fields, like the search field in bar.php on line 39
<?php echo $filters['filter_search']->input?>
I can't change the attributes of the input-field (like class="").
Any advise how I can change this.

thanks for any advise
Title: Re: overrides
Post by: federica on 24 August 2015, 10:24:57
Hi le5,
you have to modify class option by models/forms/filter_search.xml
from:
                <field
                        name="search"
                        type="text"
                        label="COM_ABOOK_KEYWORD_DESC"
                        hint="COM_ABOOK_KEYWORD"
                />

to:
                <field
                        name="search"
                        type="text"
                        class="something"
                        label="COM_ABOOK_KEYWORD_DESC"
                        hint="COM_ABOOK_KEYWORD"
                />
Title: Re: overrides
Post by: le5 on 24 August 2015, 14:05:15
Thanks for the help.

Greetings Pawel