Keyword

Change the Displaying items by tag results page?

More
11 years 7 months ago #110904 by Arien
Hi all!

I'm wonder how to change the results page you get when you click on an item tag. When you click on a tag, it displays all of the content of every item.

I just want it to display the article title and just a little bit of text, with no images.

I couldn't find this topic in the forums. Found a website that started to explain how to do this, but then the author started using images to show the process and it's so old the images no longer exist (or have been moved).

Can anyone help?

Thank you!

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

More
11 years 7 months ago #110905 by Arien
Figured it out myself.
To anyone who ends up need this particular information:


The file I got into to make the changes necessary was in /components/com_k2/templates/default/tag.php (but I used an override instead. You should do the same.)

I changed line 80 from this:
<?php echo $item->introtext; ?>
to this:
<?php echo K2HelperUtilities::wordLimit($item->introtext, 100); ?>

This automatically stopped the result list from displaying the images within the article as well, but left the item image. Which is what I wanted.

From there it was css work.

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


Powered by Kunena Forum