Keyword

author link in category_item.php

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 2 months ago #166338 by Franz Heine
author link in category_item.php was created by Franz Heine
i got the author displayed with the link with following link:
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>


but the link brings mit to the homepage. How can i modify the destination of the link/url?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 2 months ago #166364 by Krikor Boghossian
Replied by Krikor Boghossian on topic author link in category_item.php
Hello,

Can you try using the default code?
github.com/getk2/k2/blob/master/components/com_k2/templates/default/category_item.php#L66-L76

This checks if the link is set as well, so you won't have an issue with aliases.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum