• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: [Solved] Shorten {description} in List View

[Solved] Shorten {description} in List View 8 years 5 months ago #33014

  • info8717
  • info8717's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I implemented the description in the List View according to this FAQ Entry:
https://www.rsjoomla.com/support/documentation/rsdirectory/frequently-asked-questions/how-to-display-the-description-within-the-entry-listing.html

But some descriptions are way to long so I need to shorten this. How can I archive this?
Any help are really appreciated.

Regards,
Stefan Wobbe
Last Edit: 8 years 5 months ago by info8717.
The administrator has disabled public write access.

Shorten {description} in List View 8 years 5 months ago #33021

  • info8717
  • info8717's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Found a solution :-)

Changed
<?php echo $small_subtitle; ?>

to

<?php echo (preg_replace("/[^ ]*$/", '', substr($small_subtitle, 0, 450))).'...' ;?>

in the default_details.php template.
The administrator has disabled public write access.

Shorten {description} in List View 8 years 5 months ago #33026

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Thank you for sharing the solution.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 8 years 5 months ago by alexp.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!