Duplicate field

More
11 years 11 months ago #26003 by igcorreia
Duplicate field was created by igcorreia
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:
Code:
'select'
to
Code:
'selectproduct'

Now do the same to the .ini language, change from:
Code:
FLEXI_FIELD_SELECT
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]
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #26019 by ggppdk
Replied by ggppdk on topic Duplicate field
In the xml file change:

<params group="group-select" addpath="/administrator/components/com_flexicontent/elements">

TO

<params group="group-selectproduct" addpath="/administrator/components/com_flexicontent/elements">


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #26027 by igcorreia
Replied by igcorreia on topic Duplicate field
I managed to get it working. There is only one thing missing to make this Field work.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #26031 by ggppdk
Replied by ggppdk on topic Duplicate field
What is that?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #26265 by igcorreia
Replied by igcorreia on topic Duplicate field
I don't know what I was thinking that day and why I didnt finish the sentence :/

Sorry the plugin is finish few more days to post it in the forum.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.282 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline