public
Description: Radiant is a no-fluff, open source content management system designed for small teams.
Home | Edit | New

MailTo Extension

The mail_to extension wraps the built-in Rails mail_to tag, and uses :encode => :javascript to prevent robots from harvesting your email addresses for spam.

Install the mail_to extension by navigating to the root of your Radiant project and running:

./script/extension install mail_to

(If this fails see the manual installation instructions)

Restart your application server then use the tag like this:

<r:mail_to email="random@example.org" />;

or

<r:mail_to email="random@example.org">email me</r:mail_to>

Note that using this with Textile can make the email tag fail; either turn off the page’s textile or wrap the mail_to tag in <notextile></notextile>.

Last edited by johnmuhl, Thu Apr 09 22:35:37 -0700 2009
Home | Edit | New
Versions: