Jump to content

Stupid question


guywalder

Recommended Posts

Hi guys,

 

I know my question is stupid and I know the answer is even stupider but my lack of knowledge in PHP got me to a dead end.

I've got a Joomla site with a slider module which I need to modify. As for now, the main slider shows tabs to the left and main image+text to the right. The only way to get to the article itself is by clicking the text title at the bottom of the image which is small and stupid. I would like to add an href to the activated item to link to the article page. The h3 title in the tab is linked to the proper image so I can't do nothing with that. 

 

To simplify things, I wish the first click to show the image and the text and a second click on the active tab will link to the article page.

 

This is my site's URL: http://gmys.guywalderonline.com/

This is the left side tab code:

<?php foreach($slides as $item) { ?><li class="nav_item" style="<?php echo $css_item_heigth; ?>"> 
<div class="nav_slideitem_wrap"> 
<div class="nav_slideitem">
  <?php if($item->thumbs !=''){ ?>       
 <img border="0" alt="thumbnail" src ="<?php echo JURI::base().$item->thumbs; ?>" />
  <?php } ?>
  <?php if($params->get('lago_enable_link_artslidebar')) { ?>
  <a class="slidetitle" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>  
  <?php } else { ?>
<h3 class="slidetitle" href="<?php echo $item->link;?>"><?php echo $item->title; ?></h3>
  <?php } ?>   


  <p class="slidedes"><?php echo $item->introtext; ?></p> 


</div>
</div>
</li>   
<?php } ?>
Will appreciate any help here.
 
Thanks in advance,
 
Guy. 
Link to comment
https://forums.phpfreaks.com/topic/287410-stupid-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.