This page last changed on Jun 25, 2012 by jed.wheeler@involver.com.

Overview

The share_on_tublr tag is used to "Share" a content item onto the users Tumblr blog. The only required parameter is the context variable name for the content item that is being shared by the user. By default, SML will use any metadata available to populate the share options including images.


Caching Considerations

This tag has no caching considerations.


Attributes

name type required description
name string false Title for the post on Timblr
href URL false URL that you wish the share name to link back to.
image_url url false URL of an image that you wish to attach (over-rides any image selected by default)
description string false Description for the post on Tumblr

Simple Example

1. Share tweet:

{% twitter_feed %}
  {% for tweet in twitter_feed.tweet_items %}
    <p>
    {{ tweet.title | twitter_link | auto_link }}
    - {% share_on_tumblr tweet %}
    </p>
  {% endfor %}
{% endtwitter_feed %}

2. Share coupon:

{% coupon name:"hotdeals" %}
  <div class="fan-content box coupon-box">
    <div class="box-header">
      {% for current_coupon in coupon.coupon_items limit:1 %}
        {% share_on_tumblr current_coupon %}
      {% endfor %}

      <h2>Hot Deals</h2>
    </div><!-- /.box-header -->

    <div class="box-body">
      {% for current_coupon in coupon.coupon_items limit:1 %}
        <img src="{{current_coupon.image_url}}" alt="Two Free 5x7 HP photo greeting cards. Try the HP Kiosk on us.">
      {% endfor %}
    </div><!-- /.box-body -->
  </div><!-- /.coupon-box -->
{% endcoupon %}
Document generated by Confluence on Feb 12, 2013 09:09