Categories
CMS Joomla Mastering Development

How to set article options and associations programmatically?

I work on a custom Joomla 3 module that creates articles programmatically based on user input. I can create the articles, but I could not find a way to set the article options and associations when the article is created. I found this article on where the options are stored in the Joomla DB, but […]

Categories
CMS Development Joomla

How to programmatically write Joomla article customs field values?

I added some custom fields to the articles of my Joomla website: I work on a custom Joomla module that creates new articles programmatically using the below code: static function createArticle(GNGLocation $loc, GNGLang $lang, $title, $alias, $intro, $summary, $imageStr) { $table = JTable::getInstance(‘Content’, ‘JTable’, array()); $jcat = $loc->get(‘jcat_id_tour’); $jlang = $lang->get(‘joomlaName’); $data = array( ‘catid’ […]

Categories
CMS Development Joomla

How to get back the ID of programmatically created Joomla Article?

I work on a custom Joomla module that creates articles programmatically. I use the below code to create the article. It all works fine. Now I would need to get back the ID of the newly create article so that I can store it for future use. I checked the bind, check, store functions, but […]