Keyword

Modifying Tags results page

  • Ivan Biolley
  • Ivan Biolley's Avatar Topic Author
  • Offline
  • New Member
More
9 years 8 months ago #140343 by Ivan Biolley
Modifying Tags results page was created by Ivan Biolley
Hi friends!

Is there a way to edit the Tags results page?? I like to reduce the articles text limit so this shows a "Read more button" after 3 paragraphs or just a linkable H2 title (already have this) also would like to convert the word on tag to H1 title, I mean:

I have an article "How to destroy your life" and this article would be tagged in a tag named "Weedings" so when a visitor click on the tag "Weedings" the tag results page shows a h1 title "Weedings" and so on for all the tags results pages. Is that possible???

So final result would be:
A visitor clicks on any tag word, it opens a "Tag Result Page" it shows:

H1 Title (not linkable) = Tag Word
H2 Title (linkable) = K2 Item Title
3 Paragraphs of item's content
A "Read More Button"

Then the next K2 item on the tag list and so on...

I hope you can understand this fool idea!

Thank you a lot!

Ivan

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #140382 by Krikor Boghossian
Replied by Krikor Boghossian on topic Modifying Tags results page
You can override the tag.php file and apply your own styling or markup.
This post will help you with the overriding getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Now you can control the elements that are shown in K2's settings.

As for the tag displayed in the <h1> you can output the page's title.
$this->params->get('page_title') . If you want to remove the "Displaying items by tag:" you can use PHP's preg_replace php.net/manual/en/function.preg-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