title: Joomla article 3.X - Hot to define a img article for a external run
body: <p>I am using (improperly) a call to an external db where, based on the title of the article (which is empty) it gives me back some values ​​which I then expose.</p>
  
  <p>The problem is that being the article composed only by the title and when I go to use the Joomla modules, they don't see the values ​​that I extract from db.</p>
  
  <p>In practice, at each external call, I would like to re-define the parameters of that view:</p>
  
  <pre><code>introtext
  text
  img
  </code></pre>
  
  <p>PHp code:</p>
  
  <pre><code>&lt;?php
  
  $option = JRequest::getCmd('option');
  $view = JRequest::getCmd('view');
  if ($option=="com_content" &amp;&amp; $view=="article") {
      $ids = explode(':',JRequest::getString('id'));
      $article_id = $ids[0];
      $article =&amp; JTable::getInstance("content");
      $article-&gt;load($article_id);
      $nome_micio =  $article-&gt;get("title");
  
  
  
  }
  
  echo $nome_micio;
  
  $db = JFactory::getDbo();
  $gatto = $db-&gt;setQuery("SELECT * FROM #__gatti WHERE nome = '$nome_micio' and deceduto = 'No'")-&gt;loadObject();
  
  
  ?&gt;
  </code></pre>
  
  <p>I need something like </p>
  
  <pre><code>define ($article-&gt;introtext) = $gatto-&gt;textonquerydb
  </code></pre>
  
  <p>Any ideas?</p>