Site Form Override

1 1 1 1 1 Rating 0.00 (0 Votes)
 

This plugin allows you to override components form behaviour on frontend.

Version 1.0.1 : compatibility 1.0.1
Version 1.0.0 : first version.

Plugin plg_site_form_override (version 1.0.1) download

(downloaded 384 times)

 

To override Joomla! components forms, you have to use onAfterRoute event. This plugin allows any composant form override. 

Just copy component form xml from: components/<component name>/models/forms

to your template directory : templates/<template name>/forms/<component name>

For example, in the case of weblinks component, it will be usefull to override the standard form, so it will be possible to display/update weblink introduction image.

To do this, you need to override components/com_weblinks/models/forms/weblink.xml  by copying it in templates/<template name>/forms/com_weblinks.

Note: if you override com_weblinks form, do not forget to override the php file which handels the form : edit.php to copy from components\com_weblinks\views\form to templates\<yourtemplate>\html\com_weblinks\form.

Weblink override example can be downloaded here : 

and just copy it to your template directory.

 

Do not forget to activate this plugin.