Keyword

Add link "back to category" in item view

  • Burny Burner
  • Burny Burner's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98550 by Burny Burner
Add link "back to category" in item view was created by Burny Burner
Hi everybody,

 

I want to add a link to each product page (item.php) that brings you back to the category of the item. Maybe one the more advanced users can help me out. What I am going to do is to change the BACK TO TOP link in the item.php because I don´t need it. What I don´t know is how to formulate the link so that it contains the actual category of the item.

 

Thanks a lot!

 

Please Log in or Create an account to join the conversation.

  • Burny Burner
  • Burny Burner's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98551 by Burny Burner
Replied by Burny Burner on topic Add link "back to category" in item view
OK. Already found the solution. In template>default>item.php

 

change itembacktotop to this:

<div class="itemBackToTop">        <a href="<?php echo $this->item->category->link; ?>"><?php echo JText::_("back to top"); ?></a>    </div>

 

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #98552 by russjman
Replied by russjman on topic Add link "back to category" in item view
Thx for this, i needed it and hadn't started looking for it, then stumbled on to this.

 


Burny Burner said:

OK. Already found the solution. In template>default>item.php

 

change itembacktotop to this:

<div class="itemBackToTop">        <a href="<?php echo $this->item->category->link; ?>"><?php echo JText::_("back to top"); ?></a>    </div>

 

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum