Getting error on creating item by calling FLEXIcontent item model in custom code

More
6 years 7 months ago #72523 by Ali_wdm

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

More
6 years 7 months ago #72525 by ggppdk
Hello

if you get an error why did not include it in your answer here ?
also i assume you made any changes needed like setting the item id correctly

you should try to make a correction to the code i have given you

as i said i have not tested it, but that is "about" the code that you need


-- 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
6 years 7 months ago #72527 by Ali_wdm
In case 1, I am getting 'Incorrect token' error.

For case 2, i made a change, $id = array(); $id[] = '1234'
file: administrator\components\com_flexicontent\models\items.php
it working fine upto line 2560.
when control execute this line $item = $itemmodel->getItem($item_id); (on line 2561), there is some error. It not giving any error but not working.

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

More
6 years 7 months ago #72528 by ggppdk
Hello

about token you need to add it to the URL
(will give you code)

and about case 2 the other i ll test and provide some correction


-- 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
6 years 7 months ago #72534 by Ali_wdm
Hello,

When will you give code...??

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

More
6 years 7 months ago #72538 by ggppdk
Hello

i have tested
and corrected the code in my previous answer for CASE 2

some minor corrections
and also i have added to it the PHP files inclution files that are needed

- you will only get a notice of language association being empty when deleting an item without associations


-- 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...
The following user(s) said Thank You: Ali_wdm

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.126 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