Hi Guys :)

I'm printing a CCK Email field using Views2 and have noticed that if I try and trim the field to a character length, with or without selecting "Trim only on a word boundary" the field gets trimmed down to nothing. Another important thing to note is that even fields which are shorter than the trim length (currently 30 characters) are getting trimmed to nothing. Is it because the word boundary is based on the mailto html and not the email address itself?

Trimming works in every other field that I have trimmed so far.

An export of my view is here: http://pastie.org/1435565

I've googled and searched through Drupal and the views issue queue a few times, so I apologise if I've created a duplicate :)

Comments

merlinofchaos’s picture

Is the field a link or just the raw email field?

jfarry’s picture

I've not added a link via views, it is outputted as a link by default.

I've figured out a workaround. If I select "Strip HTML tags" then make the field a link using "mailto:[field_business_listing_email_email]", the trim works fine.

Another thing that I've noticed is that the "Format" options for email fields, do not contain "plain text", they only have "default email link" and "Email contact form". I don't know if this is the intended functionality though.

iamjon’s picture

Status: Active » Closed (fixed)

pyrhoe,
to the best of my knowledge the format options come from the cck email field module.
I'm going to mark this as closed as you found a work around.
Please feel free to reopen.