Extend the base class to add a method that will set the head tags for a form plugin. The intent is that users of form plugins can build them during prepareView for content chunking, and push links and scripts out in the head block, rather than in the body to assist with validation.

This commit is contained in:
Colin Kuskie 2010-09-14 11:32:19 -07:00
parent 329c396a3e
commit d2623c2159

View file

@ -452,6 +452,18 @@ sub getValueFromPost {
#-------------------------------------------------------------------
=head2 headTags ( )
Set any head tags that this form plugin needs for CSS or Javascript.
=cut
sub headTags {
return '';
}
#-------------------------------------------------------------------
=head2 isDynamicCompatible ( )
A class method that returns a boolean indicating whether this control is compatible with the DynamicField control. Returns 0.