VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ermes on March 30, 2015, 12:46:41 PM

Title: Repeatable form fields into pugin
Post by: ermes on March 30, 2015, 12:46:41 PM
Hi to all,
can i use repeatable form field (https://docs.joomla.org/Repeatable_form_field_type) to develop a vmcustom plugin? I can't find it into documentation. Can you help me?
Tnx!!
Title: Re: Repeatable form fields into pugin
Post by: Milbo on March 31, 2015, 23:10:27 PM
we have the JFields in folder "fields" and we have the sublayouts. Plugin layouts are overrideable. Check the docs.

http://docs.virtuemart.net/tutorials/development.html
http://docs.virtuemart.net/tutorials/templating-layouts/101-how-to-overwrite-plugins.html

and http://dev.virtuemart.net/projects/virtuemart/wiki

Furthermore take a look our existing customplugins.
Title: Re: Repeatable form fields into pugin
Post by: ermes on April 01, 2015, 09:44:17 AM
I have already read it, but i don't find how to use Joomla standard form fields. I can't use most of type fields (es.: media, repeatable, ecc...) in BE, because i know that i have to style it into tmpl/default.php.
I have already study exsistent plugins but i don't find solutions.
Title: Re: Repeatable form fields into pugin
Post by: Milbo on April 01, 2015, 14:13:12 PM
you set them up via xml file
Title: Re: Repeatable form fields into pugin
Post by: ermes on April 01, 2015, 18:06:23 PM
How can i do it?
if i use


<field name="mymedia" type="media" label="LABEL" description=""/>


it's unusable.
Can you show me how to do? Tnx!