Keyword

Empty itemRelIntrotext

More
6 years 8 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 8 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.

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

More
6 years 8 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 8 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?

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

More
6 years 8 months ago - 6 years 8 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 8 months ago by Ad.

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

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

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

More
6 years 8 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 8 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.

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

More
6 years 8 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 8 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?

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

More
6 years 8 months ago #169159 by Ad
Replied by Ad on topic Empty itemRelIntrotext
Yes, I still see the issue with default template (_com_k2).

I tested different website with Joomla+K2+default template and problem is same.

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

More
6 years 8 months ago #169160 by JoomlaWorks
Replied by JoomlaWorks on topic Empty itemRelIntrotext
This boils down to one thing then. Make sure there is no inheritance issues in the category parameters and/or menu items and item parameters directly.

I can also verify that I cannot reproduce your issue. Then again, my testing installation is mainly stock K2 settings.

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


Powered by Kunena Forum