How to trim a field that's been excluded from display? In Views, in order to group certain fields inside a common div, i excluded them from display and inserted them in a global text field by using their 'replacement pattern references'.  

Here's what the div looks like :

&lt;div class="nodetitle"&gt;[title]&lt;/div&gt;
&lt;div class="date-author"&gt;&lt;span&gt;[name]&lt;/span&gt; - &lt;span&gt;[created]&lt;/span&gt;&lt;/div&gt;
&lt;div class="readmore"&gt;&lt;a href="[path]"&gt;More details &amp;raquo;&lt;/a&gt;&lt;/div&gt;


The thing is i wanted to trim the node title to 50 characters max.
Trimming works fine when displaying the field 'as is' but not when it's been used as a replacement pattern in a different field.

Any help on how to achieve this ?

Thanks
I've double checked your problem and it seems to works like a charm.


In your view go to Field -> Title -> [edit] -> Rewrite results -> Trim this field to a maximum length -> set maximum length to 50

Add Global: Custom text field and place [title] in text field.



Result should looks like this: