I want to add the "title" attribute to my form fields. I was able to add a title field to the tl_form_field table and to the DCA. I was able to get it to show up in my html by adding
Code:
case 'title':
$this->arrAttributes[$strKey] = $varValue;
break;
to the
Code:
public function __set($strKey, $varValue)
{
switch ($strKey)
{...
}
in Widget.php
I am a relative newbie and no php expert, but I pick things up pretty well.
I know it's not a good idea to modify that file, but I can't figure out how to extend or override that function in a custom class.
Any ideas?
Thanks.
Bookmarks