Hey ez, how did you shorten the URLs? :))

Author Message

Marco Zinn

Tuesday 14 October 2003 8:04:01 am

I just posted in this thread:
http://www.ez.no/developer/ez_publish_3/forum/developer/preventing_caching_of_some_template
As you can see, the URLs in the forum message are shortened, with "..." in the middle.
Very cool!
Can someone tell me, how this is done? An operator probably, but which?

Marco
http://www.hyperroad-design.com

Jan Borsodi

Tuesday 14 October 2003 8:11:42 am

It's done in the autolink template operator which is part of 3.2, the fix for the text shortening is present in 3.2-2 (which is out pretty soon).

Example:
{$attribute.content|autolink(60)}
Shortens links larger than 60 characters and highlights them.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.