Keyword

display tag name and author on tags result page

More
10 years 11 months ago #119219 by moni
hi
on k2 result page the current tag name and the author name is not displaying.
is it possible to add the current tag name and the author name to the tag result page?
if i need to override tag.php what lines of code should i add to display the tag and author?

thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119220 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: display tag name and author on tags result page
Hello moni,

Did you try the snippets from this post?
getk2.org/community/New-to-K2-Ask-here-first/176077-Author-in-Tag-Listings

Also for the tag name this snippet will give you the page heading
<?php echo $this->params->get('page_title'); ?>
Please notice that you will find this variable enclosed in an if statement, removing that statement will also do the trick. You can always use a menu item and set display heading to yes.

Depending on your template and the result you want your code will vary so I can't be precise about lines

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

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

More
10 years 11 months ago - 10 years 11 months ago #119221 by moni
hi
about the tag name as page header i did it but this is not what we need we need only the tag name as header of the page and not the page title that including the site name.

about the author (the link you add) it work 100%

thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119222 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: display tag name and author on tags result page
You can either use the str_replace() function to remove the sitename, or choose not to append the sitename to page titles. This setting is located in Joomla!'s global configuration.

str_replace() tutorials: php.net/manual/en/function.str-replace.php

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