Category Description - readmore

  • Posts: 100
  • Thank you received: 1
11 years 11 months ago #79506

Hi,

I am in the file listing_img_desc.php (category)
I can see the line:

echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->category_description);
This shows all the text before the 'readmore'

In the file listing.php (category)
I can see the line:
echo JHTML::_('content.prepare',$this->element->category_description);
This shows the full description.


What i need to do is:
I need to change the code in the listing.php to show only the text after the 'readmore'


How do i do this?

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

  • Posts: 2334
  • Thank you received: 403
11 years 11 months ago #79613

Hi there,

Just replace the line in listing.php by this one:

<?php echo preg_replace('#.*<hr *id="system-readmore" */>#is','',$this->element->category_description); ?>

It should do the job :)

The following user(s) said Thank You: reders

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

  • Posts: 100
  • Thank you received: 1
11 years 11 months ago #79617

Perfect.

Thanks eliot

:)

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

Time to create page: 0.069 seconds
Powered by Kunena Forum