I have a component and module built by an external company, they have hardcoded content into the component - I want to change it so the content is called from the Joomla Article Manager.
The component uses individual codes (called by '+nugget.code+') that I want to match up to a Joomla article, with the same name.
For example, if the code (within the component) is AB1, I want it to load an article that has the title of 'AB1'.
What would I need to write to include Joomla content in an external component?
I have tried:
$article_id = +nugget.code + ": " +nugget.name + ; $article =& JTable::getInstance("content"); $article->load($article_id); var $heading = $('<h5>'. $article->get("title").'</h5>'); $text.append($heading);
But this isn't working.
The external component calls "+nugget.code +" - (which in this example, let's say the value is "REI1")
The external component also calls "+nugget.name +" - (which in this example, let's say the value is "Test Article")
So '+nugget.code +": "+nugget.name+' would be 'REI1: Test Article'
What I want, is if there is a Joomla article called 'REI1: Test Article', that then needs to be shown.