Hi!
What a problem to add placeholder attr to textarea?
Why the default layout doesn't have this function??
So, sometimes, i need this future, so i rewrite a bit this Perfect Extension!
All process in 3 steps!
1. Find the textarea.php here:
Code:
components/com_visforms/lib/html/field/textarea.php
and add this code somewere (for example on line 98)
Code:
if (!isset($attributeArray['placeholder']) || $attributeArray['placeholder'] == "")
{
$attributeArray['placeholder'] = "Test";
}
2. Now find this file:
Code:
administrator/components/com_visforms/models/forms/visfield.xml
And add this code (for example on line 476):
Code:
<field name="f_textarea_attribute_placeholder" type="text" label="COM_VISFORMS_PLACEHOLDER"
description="COM_VISFORMS_PLACEHOLDER_DESC" class="inputbox" size="50" maxlength=""
/>
3. Save new constants
Code:
COM_VISFORMS_PLACEHOLDER
- label name
and
Code:
COM_VISFORMS_PLACEHOLDER_DESC
- label description
in file that placed here:
Code:
administrator/components/com_visforms/language/en-GB/en-GB.com_visforms.ini
NB
This future
doesn't work with HTML-editor
That's all.
I think it will be usefull to add this attr to a default layout
Thank You and sorry for my bad english!