truncate title article

How to truncate title article in "latest news +" module ?
I wanna restrict the character of my title article that display in the module.

Thanks

pov.freecybers.com
11 years 3 months ago #1 by Contact

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

Well you can look for how to truncate text/string using php out there (stackoverflow maybe) then implement it inside the module layout related to that article title here

/modules/mod_latestnewsplusdate/tmpl/default.php
<a class='lndtitle' href="<?php echo $item->link; ?>"><?php echo $item->text; ?></a>

have a try...
11 years 3 months ago #2 by erwinschro

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

Powered by Kunena Forum