The code for just the long description

  • Posts: 370
  • Thank you received: 7
  • Hikashop Business
10 years 2 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: 10 years 2 months ago by grayt7.

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

  • Posts: 84873
  • Thank you received: 13824
  • MODERATOR
10 years 2 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.058 seconds
Powered by Kunena Forum