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.
At the moment, each article in the slideshow, is linking to itself. It looks like this:
<a target="_<?php echo $openTarget ;?>" title="<?php echo $row->title;?>" href="<?php echo $row->link;?>"><?php echo $row->title;?></a>
And I have tried to change the link, to linkA
<?php foreach ($articles as $key=>$article):
$articleImage = json_decode($article->images);
$articleLinks = json_decode($article->urls);
$link = NULL;
switch ($linkTo) {
case 'urlta':
$link = $article->link;
break;
case 'urla':
$link = $articleLinks->urla;
break;
case 'urlb':
$link = $articleLinks->urlb;
break;
case 'urlc':
$link = $articleLinks->urlc;
break;
case 'unurl':
$link = null;
break;
}
?>
Can anyone figure this out?