[support] Having an email/website field

DTH david at hartster.org
Thu May 17 21:38:04 UTC 2012


Yeah; they work perfectly. I feel a bit daft really. I'd used link
before as a dependency for another module, but didn't realise it could
also work as straightforward website field. Cheers!

> From: Lucas D Hedding <lucashedding at gmail.com>
> Subject: Re: [support] Having an email/website field

> Have you looked into using:
> http://drupal.org/project/link
> http://drupal.org/project/email
>

>> For a number of my content types I need an email and/or website field.
>>
>> When this field is displayed, I'd like the web/email to be displayed as a
>> link.
>>
>> However, when people are entering email addresses, it seems a clutter
>> to have a ton of dropdown format options etc and additionally I don't
>> want people adding in any formatting etc. Yet choosing "Plain text" in
>> Text Processing means there doesn't seem to be a way to do this.
>> (Which was confusing until I realised that "Plain text" in Text
>> Processing doesn't use the Plain Text filter.)
>>
>> I just wanted to double check I'm not missing something obvious and my
>> slightly convoluted options are:
>>
>> - just set the field as formatted text, ignore all the clutter of the
>> format stuff and hope that people don't enter their email between h3
>> tags
>> - install Better Formats/a custom module to hide the text formats from
>> people (and set them by default to the Plain Text format)
>> - create a preprocess function that works on these fields and converts
>> addresses to links
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.drupal.org/pipermail/support/attachments/20120517/151b334d/attachment-0001.html
>
> ------------------------------
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> End of support Digest, Vol 113, Issue 33
> ****************************************


More information about the support mailing list