create flexicontent article with plugin

More
4 weeks 1 day ago #85774 by coerter
I would like to create new articles using a Taks plugin. I am missing the appropriate classes so that the whole thing is also correct for Flexicontent. Can someone give me a tip here.

with regards

coweb

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

More
4 weeks 21 hours ago #85778 by micker

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
4 weeks 13 hours ago #85781 by coerter
Hi,
thank you for reply. This Code doesn't work with Joomla 4/5. I tried this:// Lade die benötigten Flexicontent-Klassenrequire_once JPATH_SITE . '/components/com_flexicontent/classes/flexicontent.helper.php';require_once JPATH_SITE . '/components/com_flexicontent/classes/flexicontent.categories.php';require_once JPATH_SITE . '/components/com_flexicontent/classes/flexicontent.fields.php';require_once JPATH_SITE . '/components/com_flexicontent/helpers/permission.php';require_once JPATH_SITE . '/components/com_flexicontent/helpers/route.php'; // Das Tabellenverzeichnis der Komponente Table::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_flexicontent/tables'); if (Factory::getApplication()->isClient('administrator')) {BaseDatabaseModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_flexicontent/models', 'FlexicontentModel');} else {BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_flexicontent/models', 'FlexicontentModel');}// Flexicontent Model$flexicontentArticleModel = BaseDatabaseModel::getInstance('Item', 'FlexicontentModel');
I get an Error in parentclassitem.php in this row$this->_record->itemparams = new JRegistry(); Attempt to assign property "itemparams" on null" what could be the reason?

with regards

coweb

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

More
3 weeks 4 days ago #85795 by micker
yes because some class doesn't exist doesn't exist in joomla 4
docs.joomla.org/Potential_backward_compa...y_issues_in_Joomla_4
JFactory became Factory::getApplication(); (need to add class \Joomla\CMS\Factory )
jtable need to be remove
JFactory::getLanguage() => Factory::getLanguage()
JFactory::getApplication()->isAdmin() => JFactory::getApplication()->isClient('administrator')

thanks for your return

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.

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