Keyword

Item view options in category listings

  • poselziobro
  • poselziobro's Avatar Topic Author
  • Offline
  • New Member
More
4 years 11 months ago #173983 by poselziobro
Item view options in category listings was created by poselziobro
Is it possible to achieve such an effect?
In one category in Category item layout so that Leading count (e.g. 2 items) were visible entire articles (fulltext) and the other Primary count (e.g. 3 items) so that only intro text and image were visible?

As in the attachment
Attachments:

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

  • poselziobro
  • poselziobro's Avatar Topic Author
  • Offline
  • New Member
More
4 years 11 months ago - 4 years 11 months ago #173997 by poselziobro
Replied by poselziobro on topic Item view options in category listings
More specifically.
The point is if you can set
fulltext (no word limit in introtext) for the Leading group
and
introtext (custom word limit) for the group Primary / Secondery


anyone?
Last edit: 4 years 11 months ago by poselziobro.

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

More
4 years 11 months ago #174023 by JoomlaWorks
Replied by JoomlaWorks on topic Item view options in category listings
1. Create a new set of K2 template overrides inside your Joomla template: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

2. Edit the file default/category_item.php, locate the line <?php echo $this->item->introtext; ?> and replace with <?php echo $this->item->text; ?>. Done.

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

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

More
4 years 11 months ago #174024 by JoomlaWorks
Replied by JoomlaWorks on topic Item view options in category listings
Actually, copy the file category_item.php to category_leading_item.php so you can only use it for your leading items. Then in category.php, replace the first instance of:

echo $this->loadTemplate('item');

with:

echo $this->loadTemplate('leading_item');

That should do the trick.

Fotis / 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