Keyword

Empty itemRelIntrotext

More
6 years 2 months ago #169114 by Ad
Empty itemRelIntrotext was created by Ad
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.

More
6 years 2 months ago #169116 by JoomlaWorks
Replied by JoomlaWorks on topic Empty itemRelIntrotext
Make sure the category you're change the settings in does not inherit the params of another category.

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
6 years 2 months ago #169118 by Ad
Replied by Ad on 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.

More
6 years 2 months ago #169125 by JoomlaWorks
Replied by JoomlaWorks on topic Empty itemRelIntrotext
Related items are retrieved based on tags. Are you using tags for your content in K2?

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
6 years 2 months ago - 6 years 2 months ago #169128 by Ad
Replied by Ad on topic Empty itemRelIntrotext
Yes – and I see related items under the article but with empty div for itemRelIntrotext (2 screenshots below).
Attachments:
Last edit: 6 years 2 months ago by Ad.

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

More
6 years 2 months ago #169129 by JoomlaWorks
Replied by JoomlaWorks on topic Empty itemRelIntrotext
Can you paste the contents of your item.php please?

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
6 years 2 months ago #169130 by Ad
Replied by Ad on 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.

More
6 years 2 months ago #169144 by JoomlaWorks
Replied by JoomlaWorks on 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.

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
6 years 2 months ago #169151 by Ad
Replied by Ad on 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.

More
6 years 2 months ago #169157 by JoomlaWorks
Replied by JoomlaWorks on 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?

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