Hi guys!
I need a little help.
I need a list of some articles, with their longtitle - but I need to limit the title to about 30 characters, and if the limit is over, show "..." on the end.
It should look like this:
02/05 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
01/05 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
(Instead of the rest of "aaa" - after the 30th character - there is ... )
Is it possible?
I use DItto to make the list and a template that looks like this:
<li>([+date+])<a href="/[~[+id+]~]">[+longtitle+]</a></li>
The ditto part looks like this (I use a filtering by tags):
<ul>
[!Ditto? &dateFormat=`%m/%d` &parents=`264,223,226,283` &dateSource=`pub_date` &filter=`tag,1,7` &display=`all` &noResults=`no_post` &tpl=`tag_list` &depth=`0` ;!]
</ul>