Can someone help me.
I am following this tutorial but I find hard to make it work:
flexicontent.org/documentation/faq/42-fa...icontent-fields.html
1: I have download the files: select.php and select.xml from the plugins/flexicontent_fields
2: Change the name of the files: selectproduct.php and selectproduct.xml
3:open selectproduct.xml and change line3 to:
Code:
<name>FLEXIcontent - Select Product</name>
Change line 11 to:
Code:
<description>FLEXI_FIELD_SELECTPRODUCT</description>
change line 13 to:
Code:
<filename plugin="selectproduct">selectproduct.php</filename>
I have deleted all languagues but english so in line 59 change to:
Code:
<language tag="en-GB">en-GB.plg_flexicontent_fields_selectproduct.ini</language>
and delete lines 60, 61, 62.
So I think here I have change all names needed correct?
The second part is to do the same but with the .PHP file so open selectproduct.php and change line 19,21, 31,186 from
Code:
plgFlexicontent_fieldsSelect
to
Code:
plgFlexicontent_fieldsSelectProduct
change line 24 from:
Code:
plg_flexicontent_fields_select
to
Code:
plg_flexicontent_fields_selectproduct
change all instances that say:
Code:
field->field_type != 'select'
to
Code:
field->field_type != 'selectproduct'
Also in the QUERYS change in line 196, 201,373:
to
Now do the same to the .ini language, change from:
to
Code:
FLEXI_FIELD_SELECTPRODUCT
I have then zipped the 3 files and installed, the field install perfectly, after install go and publish the plugin. The problem is that when you create a new field and select the field Flexicotent - Select Product the option from the .XML won't appear in the back end.
What I am not changing or changing to much?
Atention this does not work
[attachment=0:2ijlmfqt]<!-- ia0 -->selectproduct.zip<!-- ia0 -->[/attachment:2ijlmfqt]