News:

Looking for documentation? Take a look on our wiki

Main Menu

How to add some configuration parameter from VM component or its modules?

Started by borro, May 24, 2016, 10:55:56 AM

Previous topic - Next topic

borro

Hello!

I'm going to create a module. I have known that there is a possibility to add the reference at some already described parameter in <config> section of manifest file for a new module. As I understood it can be done by pointing the value of addfieldpath attribute in <fieldset> tag. I didn't find the information about it in description of a syntax of a manifest file.

I'm going to use configuration parameter to create a dropdown filter with all existing product categories of Virtuemart 3 component. But I didn't understand what the value should I use for addfieldpath attribute for that.

Please explain me what values should be passed to the value of an addfieldpath attribute in a <fieldset> tag in <config> section of manifest file.
Wish you happiness!

Ghost

From VM product module:

<fields name="params" addfieldpath="/administrator/components/com_virtuemart/fields">
<fieldset name="basic">
        <field
          name="virtuemart_category_id"
          type="vmcategories"
          value_field="category_name"
          label="MOD_VIRTUEMART_PRODUCT_CATEGORY_ID"
          description="MOD_VIRTUEMART_PRODUCT_CATEGORY_ID_DESC"
        />
      </fieldset>
</field>