The code for just the long description

  • Posts: 368
  • Thank you received: 7
  • Hikashop Business
9 years 10 months ago #217294

Hi,

I've searched but I can’t see to find a definitive answer for this.

imagine this scenario:

short description
system readmore
long description

What is the code to get JUST the long description?

I've tried this:

echo JHTML::_('content.prepare',preg_replace('#.*<hr *id="system-readmore" */>#i','',$this->element->product_description));

but that gets both the short and long description.

Many thanks

Sorry I've posted this in the wrong section :( please can some one move it.

Last edit: 9 years 10 months ago by grayt7.

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
9 years 10 months ago #217321

Hi,

It's this:

echo JHTML::_('content.prepare',preg_replace('#.*<hr *id="system-readmore" */>#is','',$this->row->product_description));

The following user(s) said Thank You: grayt7

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

Time to create page: 0.052 seconds
Powered by Kunena Forum