This script allows you to limit the content of text field outputs in templates.

To install this code open Control Panel > Design customisation > <span style="color:green">(module)</span> > Appearance of entries.

Then replace the current $MESSAGE$ with the following code.

Code
<?if(len($MESSAGE$)>250)?><?substr($MESSAGE$,0,250)?>...<?else?>$MESSAGE$<?endif?>


This code will limit the amount of character displayed to 250. Once this number of characters has been shown the system appends "..." to the output.

  Paradox        5.0        0        31/03/2020

avatar

My Account
You are currently not logged in.

So what are you waiting for?
To get started log in or sign up to Dashboard Support to make use of all our cool site features.

Online Chat
[admin] Paradox: Please log in to take part in online chatter.

Food For Thought

Opinions Wanted!