Keyword

How to add the Author to the Tag Page

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 7 months ago #110636 by Steven Johnson
How to add the Author to the Tag Page was created by Steven Johnson
Hi I am working on styling my tag page and having trouble adding the author to the tag page.

Here is the code that I am using:

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

  • Andrey Miasoedov
  • Andrey Miasoedov's Avatar
  • Offline
  • Senior Member
More
11 years 7 months ago #110637 by Andrey Miasoedov
Replied by Andrey Miasoedov on topic Re: How to add the Author to the Tag Page
Hello, Steven.

Unfortunately, it is not possible without K2 core modifications, because author block enabled in specific K2 sections.

You can check it in components\com_k2\models\item.php

Find "//Author" at line ~228 and condition for generate author block, you can add " || $task == 'tag'" for enable it at tag page.

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

More
11 years 7 months ago #110638 by Axel
THANK YOU! This should be on top of the K2 forum! Or "Andrey Miasoedov" should get a price from K2 for openly publishing a suggestion on how to fix this issue.

The ONE (of a couple of) place(s) (on a site with more than one publisher) where it is imperative that you can display the author it isn't possible by default?!

Don't get me wrong, I love K2 and everything about it (almost, apparently hehe), but this feels more like an oversight :)

Anyway, thank you again for this working solution.

To any K2 dev team member reading this... Please consider adding the option of displaying the author on ANY and ALL possible pages where author and content go hand in hand :) and thank you as well for a superior CMS add on (that should be a part of Joomla core ;))

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

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 6 months ago #110639 by Steven Johnson
Replied by Steven Johnson on topic Re: How to add the Author to the Tag Page
Hi Andrey, Thanks for the reply and the answer

Do you think there is any chance that this could get worked into the K2 core?

I really try to avoid changing any K2 core files.



Thanks! -- Steven

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


Powered by Kunena Forum