Keyword

item links in category list are showing intro text

  • Inge Huizenga
  • Inge Huizenga's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #154442 by Inge Huizenga
Dear support team,

I have been using K2 on several websites and I am very happy with the component. However, now I am facing a problem after upgrade to 2.7.

The item links in the category list are also showing intro text of the item. Before the update it was only showing the title link. I tested it with the template protostar and beez as well, and also with these templates the links are showing up with intro text. It concerns the news page, in which 2 items are configured to show title, intro text and image in 2 columns. Then a few links should be showed. See www.svn69.nl

Your support would be appreciated.

Thanks in advance
Best regards
Inge Huizenga

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154476 by Krikor Boghossian
Replied by Krikor Boghossian on topic item links in category list are showing intro text
Hello Inge,

Are you using any overrides in your site?

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

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

  • Inge Huizenga
  • Inge Huizenga's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #154577 by Inge Huizenga
Replied by Inge Huizenga on topic item links in category list are showing intro text
Hello Krikor,

I am not using any overrides in this site, except for some style things in CSS

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

More
7 years 11 months ago #154578 by Javi Mata
can try disabled the introtext show in the Item view options in category listings

imgur.com/mp5J90E

Twitter: @Javi_Mata
Web: www.javimata.com

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154609 by Krikor Boghossian
Replied by Krikor Boghossian on topic item links in category list are showing intro text
Read this post on how to override K2's templates.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Duplicate the category_item and rename it to category_item_links.php

Open the newly cretated file and remove the introtext.
	  <?php if($this->item->params->get('catItemIntroText')): ?>
	  <!-- Item introtext -->
	  <div class="catItemIntroText">
	  	<?php echo $this->item->introtext; ?>
	  </div>
	  <?php endif; ?>

Now open the category.php file and in line 238 (the last of its kind) locate
echo $this->loadTemplate('item');

and replace it with
echo $this->loadTemplate('item_links');

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

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

  • Inge Huizenga
  • Inge Huizenga's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #154655 by Inge Huizenga
Replied by Inge Huizenga on topic item links in category list are showing intro text
Hi Krikor,

thanks a lot for your support. I managed it according to your instruction. It works and I am happy.

Best regards
Inge

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154674 by Krikor Boghossian
Replied by Krikor Boghossian on topic item links in category list are showing intro text
You 're welcome :)

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