overrides

Started by le5, 20 August 2015, 09:23:48

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

le5

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

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

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"
                />
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

le5

Thanks for the help.

Greetings Pawel