Keyword

Empty itemRelIntrotext

  • Adrian
  • Adrian's Avatar Topic Author
  • Offline
  • New Member
More
5 days 19 hours ago #169114 by Adrian
Adrian created the topic: Empty itemRelIntrotext
Hi,

I have the latest version of K2 (2.8.0) and Joomla (3.8.12).

I want to display introtext in related items under the article. I chose this option in category settings but div for itemRelIntrotext is empty for all items.

The file item.php is overwritten in custom template but the problem also exists for original item.php. Please help me.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 17 hours ago #169116 by Fotis
Fotis replied the topic: Empty itemRelIntrotext
Make sure the category you're change the settings in does not inherit the params of another category.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Adrian
  • Adrian's Avatar Topic Author
  • Offline
  • New Member
More
5 days 17 hours ago #169118 by Adrian
Adrian replied the topic: Empty itemRelIntrotext
Thank you for the quick reply.

Unfortunately, the category is primary.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 1 hour ago #169125 by Fotis
Fotis replied the topic: Empty itemRelIntrotext
Related items are retrieved based on tags. Are you using tags for your content in K2?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Adrian
  • Adrian's Avatar Topic Author
  • Offline
  • New Member
More
4 days 22 hours ago - 4 days 22 hours ago #169128 by Adrian
Adrian replied the topic: Empty itemRelIntrotext
Yes – and I see related items under the article but with empty div for itemRelIntrotext (2 screenshots below).
Attachments:
Last Edit: 4 days 22 hours ago by Adrian.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 days 20 hours ago #169129 by Fotis
Fotis replied the topic: Empty itemRelIntrotext
Can you paste the contents of your item.php please?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Adrian
  • Adrian's Avatar Topic Author
  • Offline
  • New Member
More
4 days 19 hours ago #169130 by Adrian
Adrian replied the topic: Empty itemRelIntrotext
I tested original item.php without custom changes and the problem also exists. File item.php is in attachment below (with extra .txt extension).
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 days 1 hour ago #169144 by Fotis
Fotis replied the topic: Empty itemRelIntrotext
If you don't see the "introtext" in related items, it's a configuration problem and you need to dig deeper in your category settings. Also make sure that the related items are not explicitly hidden in the item display settings, I've seen this in the past happen accidentally by users.

The default code as is works just fine. To verify, simply create a new Joomla installation, add K2 in it and either create a few dummy items/categories or use our own "Fill It Up" ( github.com/joomlaworks/fill-it-up-for-joomla ) to quickly generate dummy data in K2. Then test the settings again by allowing related items' introtext to be shown in the display settings of one or more categories.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Adrian
  • Adrian's Avatar Topic Author
  • Offline
  • New Member
More
3 days 30 minutes ago #169151 by Adrian
Adrian replied the topic: Empty itemRelIntrotext
I see text in itemRelIntrotext div after I turned on… introtext for "Item view options in category listings". Is it bug?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 days 20 hours ago #169157 by Fotis
Fotis replied the topic: Empty itemRelIntrotext
Nope, perhaps your if statements got mixed up in the overrides. Simply place an underscore in front of "com_k2" in your template's /html folder so the default templates kick in. Do you still see the issue?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white