Skip to the content
Documentation

attribute_view_gui and shorten

No ratings yet

How can i use attribute_view_gui and shorten, to have a limited output ?

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: attribute_view_gui and shorten

    Alimi Nabil ·

    Hi,
    You can't use attribute_view_gui with shorten operator. Depending of the datatype, having something like

    $your_attribute.content|shorten( 20...)

    should do. However, if you want to keep the attribute_view_gui mechanism, you might consider customizing the template invoked with the attribute_view_gui operator by copying it in your design folder-path. (content/datatype/view/ezstring.tpl for example).
    Therefore you can pass any parameters you want provided you handle it in the template.