Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.4
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

mrh_email_article_link

<txp:mrh_email_article_link /> generates a simple “mailto:” link using either a button image and/or text link that provides the URL for the current article (thus this should be used inside a single article form) and the title in the subject line. In v. 0.4, you can also set your own message with the mymessage parameter or prepend the mymessage before the URL with the prepend parameter. If you wish to add a line break between the mymessage and the article URL, you can use %0D%0A. Example: <txp:mrh_email_article_link mymessage="Someone thought you might like to read this article:%0D%0A" prepend="yes" />

Parameters:

subject: the TXP global variable $thisarticle[‘title’] is the default, but you can set this manually.

textlink: the string “Email article link” is the default, but you can set your own with this parameter. Note: this is required, because it is used for the “alt” parameter even if you are using an image link.

imagepath: default is empty, but if you have an image you would like to use as a button, you can set it here like imagepath=”./images/my_button.gif” and it will override the textlink.

classname: default is empty, but this allows you to style your textlink or image link with a <div> with your own class.

toemail: email address if you wish to use this as a to email link. Email address is obfuscated (hidden from spambots).

imagetext: Option to set if you want the textlink to accompany a link image button. Default is ‘no’. Set to ‘yes’ if you would like to present the image button with the link text to the side.

mymessage: NEW! Set your own message instead of the article URL. (X)HTML can be used. If used with the prepend parameter, it will be used as the prepended text before the article URL.

prepend: Set this to ‘yes’ to prepend mymessage parameter to the article URL. Example: <txp:mrh_email_article_link mymessage="Someone thought you should read this article: " prepend="yes" />

Article Request Count:

Archived [?]: orphaned: broken link

Keywords/tags:
Initially released:
11-07-06
Posted here:
26 Feb 2005
Article modified:
28 Feb 2008

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

alex:

Works fine with TXP 4.0.6. No need to archive.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern