Keyword

[SOLVED] Fulltext will not render on item layout

  • 3by400
  • 3by400's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago #132567 by 3by400
Replied by 3by400 on topic Re: Fulltext will not render on item layout
Thanks for the reply! I've replaced the if/else with the code you provided and I'm only getting the introtext ... membersonlysupplements.com/index.php?option=com_k2&view=item&id=4:busting-creatine-myths-wide-open&Itemid=349#.VDKHpOcapTd

This is what its suppose to look like (category view) - membersonlysupplements.com/index.php?option=com_k2&view=itemlist&task=category&id=16:creatine&Itemid=349#.VDKJM-capTd

For some reason when the item layout gets itemFulltext its getting an incorrect result.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #132568 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Fulltext will not render on item layout
Double check your category's settings. Then make sure that this category is not inheriting its settings from another category.

Also make sure that you have edited the settings for that particular item as well.

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

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

  • 3by400
  • 3by400's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago - 9 years 11 months ago #132569 by 3by400
Replied by 3by400 on topic Re: Fulltext will not render on item layout
I have checked, double-checked, triple-checked ... categories, inherited categories and the items ...

This issue is independent from the if statement that queries these parameters.

I can even eliminate the if statement entirely and just force the fulltext in item.php and I still get no fulltext on the item layout .. this is super strange.

I checked the database and I do have content in the fulltext field.

I'll be happy to provide you admin access if you want to take a look?

Update

Now on this page (membersonlysupplements.com/index.php?option=com_k2&view=item&id=4:busting-creatine-myths-wide-open&Itemid=349) I've eliminated the if statement and only have:

<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
<br/><br/><strong>TESTING -- IS THIS FILE RENDERING THE ITEM PAGE? (components/com_k2/templates/default/item.php) -- TESTING</strong>
</div>

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #132570 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Fulltext will not render on item layout
Which other extensions are you using?

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

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

  • 3by400
  • 3by400's Avatar Topic Author
  • Offline
  • New Member
More
9 years 8 months ago #136093 by 3by400
Hi Krikor -

Been a while, huh? We've been building this site so we took a break from this issue while we worked on some others areas of the site. We've finally circled back around to this issue and we've discovered the cause.

Our client had installed the jl_coupons_code plugin (Simple Coupons Code) and it was manipulating the k2 content in the onContentBeforeDisplay trigger, removing the fulltext from display. This is the code from the plugin where fulltext is eliminated:

case 'com_k2':
if($context == 'com_k2.item' || $context == 'com_k2.itemlist'){
$html = preg_replace_callback($regex, array('plgContentJL_Coupons_Code', 'renderCouponsCode'), $row->introtext);
}else{
return;
}
break;

We've disabled the plugin for now and the issue is resolved.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #136110 by Krikor Boghossian
Replied by Krikor Boghossian on topic [SOLVED] Fulltext will not render on item layout
Yeap, it's been some months.

I 'm really grateful that you posted the solution and the culprit :)

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