VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fabioweb on November 07, 2016, 18:44:53 PM

Title: placeholder textinput plugin
Post by: fabioweb on November 07, 2016, 18:44:53 PM
Hello!
is it possible to set a dynamic placeholder in /plugins/vmcustom/textinput/textinput/tmpl/default.php

<input class="<?php echo $class ?>"
   type="text" value=""
   size="<?php echo $params->custom_size ?>"
   name="<?php echo $name?>"
><br />


Thank you =)
Title: Re: placeholder textinput plugin
Post by: K&K media production on November 08, 2016, 15:41:44 PM
you can made a template override for this file and add your placeholder there

templates/your_template/html/vmcustom/textinput/default.php
Title: Re: placeholder textinput plugin
Post by: fabioweb on November 08, 2016, 15:49:32 PM
Thats right but if i have more than one textinput?
It will be the same for every fields
Title: Re: placeholder textinput plugin
Post by: K&K media production on November 08, 2016, 16:17:42 PM
you can use title, description, default value etc as placeholder inside your override