Keyword

clickable author link in article view

  • mavievs
  • mavievs's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #147836 by mavievs
clickable author link in article view was created by mavievs
Is it possible to make autor of an article (in meta of every article) hyperlinked to the page list of all the articles by autor?

thanks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #147843 by Krikor Boghossian
Replied by Krikor Boghossian on topic clickable author link in article view
The link is there by default.
If you are using an author alias however then the link will not be displayed.

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

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

  • mavievs
  • mavievs's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #147943 by mavievs
Replied by mavievs on topic clickable author link in article view
Thanks for answer. Yes, the problem is we are using author alias, since we publish many articles from different authors (they do not do it by themselves, we do it for them and than - the author is always Super Admin :)) that is why we use author alias. My question is, if there is a way to make author alias link clickable, and the link will show all the articles form the author - and if so - is there any tutorial out there?

thanks

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

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #147953 by Franz Wohlkönig
Replied by Franz Wohlkönig on topic clickable author link in article view
Hi mavievs,

I am in similiaer Situation and solved it with an Profil of every Author and link instead of Super-Admin it to Item.

Regards

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #147959 by Krikor Boghossian
Replied by Krikor Boghossian on topic clickable author link in article view
There is actually a manual way.
You can create a new extrafield, text type, and store the link in that field.

Then in your overrides (getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates) in the category-item or item (or both ) items, you can render that field inside an tag.

Locate this block of code:
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>

In order to render a specific extrafield in your template you can use this as a starting point
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L103-L107

Just make sure to replace the alias and be careful where $this->item and $item are being used.

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

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

  • mavievs
  • mavievs's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #147990 by mavievs
Replied by mavievs on topic clickable author link in article view
Thanks for your answers. It seems to me a bit difficult. The easiest thing to do looks like to have an autor tag, which will solve everything. I'll just hide an author field and move author name into tags field. I will have one more tag, but it is easy to handel. I wonder, how it would affect SEO.

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


Powered by Kunena Forum