<commit_before>= Email Page

Email pages, and keep track of how many times each page was emailed.

== Installation

  $ cd <radiant_app>/vendor/extensions/
  $ git clone <email_page_git_url> email_page

== Usage

Add this to pages that should be emailable:

  <a id="email_page_link" href='<r:email_page:url/>'>Email This Page</a>
  <div id="email_page_count"><r:email_page:count/></div>

Create a page of type Email with a body part like this:

  <r:email_page:form [subject="Recommendation"]>
    <r:error>
      <div id="email_page_errors">
        <h4>Please correct the errors below.</h4>
        <ul>
          <r:error on="from"><li>Your email address <r:message /></li></r:error>
          <r:error on="recipients"><li>The recipient email address <r:message /></li></r:error>
        </ul>
      </div>
    </r:error>
  
    <div class="field<r:error on="from"> error</r:error>">
      <label for="from">From:</label>
      <r:text name="from"/>
    </div>
    <div class="field<r:error on="recipients"> error</r:error>">
      <label for="recipients">Recipients:</label>
      <r:text name="recipients"/>
    </div>
    <input type="submit">
  </r:email_page:form>
  
Optionally customize the email with an email part like this:

  <r:email_page>
  <r:from/> enjoyed reading this page <r:page_url/> and thinks you might too.
  </r:email_page>

== TODO

* make to, and from required fields
* display friendly error message if there is no page of type Email
* handle finding multiple "Email" type pages

== Home

  http://github.com/mikehale/radiant-email-page-extension/tree/master

== Credits

Sponsored by Ignite Social Media LLC - http://ignitesocialmedia.com/
Heavily influenced by Mailer Extension for Radiant (there is probably a way to refactor this extension to make use of it).

See LICENSE for copyright and licensing details.<commit_msg>update todo list<commit_after>= Email Page

Email pages, and keep track of how many times each page was emailed.

== Installation

  $ cd <radiant_app>/vendor/extensions/
  $ git clone <email_page_git_url> email_page

== Usage

Add this to pages that should be emailable:

  <a id="email_page_link" href='<r:email_page:url/>'>Email This Page</a>
  <div id="email_page_count"><r:email_page:count/></div>

Create a page of type Email with a body part like this:

  <r:email_page:form [subject="Recommendation"]>
    <r:error>
      <div id="email_page_errors">
        <h4>Please correct the errors below.</h4>
        <ul>
          <r:error on="from"><li>Your email address <r:message /></li></r:error>
          <r:error on="recipients"><li>The recipient email address <r:message /></li></r:error>
        </ul>
      </div>
    </r:error>
  
    <div class="field<r:error on="from"> error</r:error>">
      <label for="from">From:</label>
      <r:text name="from"/>
    </div>
    <div class="field<r:error on="recipients"> error</r:error>">
      <label for="recipients">Recipients:</label>
      <r:text name="recipients"/>
    </div>
    <input type="submit">
  </r:email_page:form>
  
Optionally customize the email with an email part like this:

  <r:email_page>
  <r:from/> enjoyed reading this page <r:page_url/> and thinks you might too.
  </r:email_page>

== TODO

* display friendly error message if there is no page of type Email
* handle finding multiple "Email" type pages

== Home

  http://github.com/mikehale/radiant-email-page-extension/tree/master

== Credits

Sponsored by Ignite Social Media LLC - http://ignitesocialmedia.com/
Heavily influenced by Mailer Extension for Radiant (there is probably a way to refactor this extension to make use of it).

See LICENSE for copyright and licensing details.
{'fraction_non_alphanumeric': 0.1359064963305246, 'fraction_numerical': 0.0010872519706441968, 'mean_word_length': 3.693877551020408, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3454176', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1166, 'n_words': 365}