How to create item automatically ?

More
7 years 4 months ago #65201 by ilo
Hello
I would like to create automatically différents items (with only one different value-field) when submit only one item in frontend, but I don't know how to do :
I tried an SQL query that create a row in the DB-table ..._flexicontent_item_tmp and a new line appears well in the Flexicontent manager in backend, but without the category and the type from SQL query and there is a error message :
Warning: Creating default object from empty value in /homepages/19/d607759087/htdocs/clickandbuilds/Flexi3/administrator/components/com_flexicontent/models/items.php on line 349
Is there a way to create item automatically please ?

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

More
7 years 4 months ago #65202 by micker
can you explain and add your code ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 4 months ago #65204 by ggppdk


-- 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
7 years 4 months ago - 7 years 4 months ago #65213 by ilo
Yes this script seems to be exactly what I was looking for !
But when I execute the script in a Joomla! extension with $item_ID=0 (new item creation), I have an error message :
Fatal error: Call to undefined method stdClass::bind() in /.../administrator/components/com_flexicontent/models/parentclassitem.php on line 1978
And when I execute the script with $item_ID=161 (existing item modification), I have an other error message :
Fatal error: Call to a member function load() on boolean in /homepages/19/d607759087/htdocs/clickandbuilds/Flexi3/administrator/components/com_flexicontent/models/parentclassitem.php on line 3363

Maybe I forget something ?...
Last edit: 7 years 4 months ago by ilo. Reason: more precision

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

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