PDA

View Full Version : Truncate Ticker


berto
10-24-2009, 04:55 PM
I tried look around on the vivvo documentation for a truncate tag but was not successful.

Want to truncate the ticker titles as some are very long... Has the VTE got it's own truncate tag?? i.e |truncate:30

<vte:value select="{article.get_title}" />

millkins
10-26-2009, 09:37 AM
Well you can always do something like this:

http://www.vivvo.net/forums/showthread.php?t=3563&highlight=shorter+title

but if you really wanna go along with the truncate I suggest this:

http://www.vivvo.net/forums/showthread.php?t=5902&highlight=title+short

You know we will make that search button bigger one day :P

berto
10-26-2009, 02:57 PM
Hmm not sure the first will work on the ticker as I previously tried that...

The second option look more promising altought that will shorten all my titles and I only want this on the ticker...

See attached :) If my titles are any longer then that the ticker creates a new line on the next headline that loads :(

Oh forgot to thank you :) apriciated.

millkins
10-28-2009, 09:46 AM
No the other option will shorten your titles only if you place this code:


<vte:value select="{article.get_title_short}" />


You are supposed to create a new function not delete the old one.:D

berto
10-28-2009, 01:58 PM
Thank you :)

millkins
10-29-2009, 10:38 AM
You're welcome ;)