title: How to use "Link A" php - joomla
body: <p>I'm having trouble using another article link in my "slideshow". 
  In the article in Joomla it's possible to add 3 links, Link A, Link B and Link C. 
  I'm sure it's is possible to use theese links  with the PHP, but I really can't find out how. </p>
  
  <p>At the moment, each article in the slideshow, is linking to itself. It looks like this:</p>
  
  <pre><code>    &lt;a target="_&lt;?php echo $openTarget ;?&gt;" title="&lt;?php echo $row-&gt;title;?&gt;" href="&lt;?php echo $row-&gt;link;?&gt;"&gt;&lt;?php echo $row-&gt;title;?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>And I have tried to change the link, to linkA</p>
  
  <pre><code>    &lt;?php foreach ($articles as $key=&gt;$article):
              $articleImage = json_decode($article-&gt;images);
              $articleLinks = json_decode($article-&gt;urls);
              $link = NULL;
              switch ($linkTo) {
                  case 'urlta':
                      $link = $article-&gt;link;
                      break;
                  case 'urla':
                      $link = $articleLinks-&gt;urla;
                      break;  
                  case 'urlb':
                      $link = $articleLinks-&gt;urlb;
                      break;
                  case 'urlc':
                      $link = $articleLinks-&gt;urlc;
                      break;
                  case 'unurl':
                      $link = null;
                      break;
              }   
      ?&gt;
  </code></pre>
  
  <p>Can anyone figure this out?</p>