alexandrieb Posted August 8, 2017 Share Posted August 8, 2017 Bonjour, j'aimerais créer un helpers (input number) dans mon module. Je n'utilise pas de controller. Seulement la page de configuration du module via l'admin. Mais je n'ai pas l'impression que mon fichier form.tpl soit lue... Mon fichier form se trouve dans views/templates/admin/_configure/helpers/form/form.tpl Avez-vous une idée? je suis en version 1.6 Merci Link to comment Share on other sites More sharing options...
alexandrieb Posted August 10, 2017 Author Share Posted August 10, 2017 Personne n'a une idée? Link to comment Share on other sites More sharing options...
BonPresta Posted August 17, 2017 Share Posted August 17, 2017 Personne n'a une idée? Bonjour, exemple form.tpl {extends file="helpers/form/form.tpl"} {block name="field"} {if $input.type == 'my_input'} <input id="name" type="text" class="disabled" name="filename" readonly /> {/if} {$smarty.block.parent} {/block} exemple mymodule.php array( 'type' => 'my_input', 'label' => $this->l('Input'), 'name' => 'input', 'lang' => true, 'required' => true, ), Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now