I created a custom field type in Joomla and you need to pass parameters to it. For example, my JForm XML file looks like this:
<?xml version="1.0" encoding="utf-8"?> <form> <fieldset addfieldpath="/administrator/components/com_gallery/models/fields"> <field name="images" type="MultiImage" label="Images" description="" imagetable="#__gallery_images" imagedir="../images/gallery/originals/" /> </fieldset> </form>
And I want to access imagetable and imagedir in my custom field:
<?php
I assumed that you just used $this->attributename , and when I var_dump($this) , I see that the attributes are defined, but they are :protected .
I would appreciate help on this :)
Thanks Tom
source share