Twitter Controls for use in Layout.Master

Twitter Controls for use in Layout.Master

TweetThis Button

You can add this control to the layout.master file of your skin to have a Tweet button on every page that uses the skin.

The Code:

<portal:TweetThisLink id="tweetthis1" runat="server"
        CountStyle="horizontal"
        LanguageCode=""
        LinkText="Tweet"
        RelatedTwitterAccount=""
        SourceTwitterAccount=""
        TitleToTweet=""
        UrlToTweet=""/>

Notes:

  • CountStyle - valid values are none, horizontal, and vertical. Default is horizontal.
  • LanguageCode - default is en.
  • LinkText - The text you want to show up on the button. Default is "Tweet."
  • RelatedTwitterAccount - see the twitter documentation for via user
  • SourceTwitterAccount -  see the twitter documentation for recommended accounts
  • TitleToTweet - The text of the message you want tweeted. Leave this blank or don't set it at all to use the title of the current page.
  • UrlToTweet - The URL that will be included in the tweet. Leave this blank or don't set it at all to use the url of the current page.

Follow Button

You can add this control to the layout.master file of your skin to have a Twitter Follow button on every page that uses the skin.

The Code:

<portal:TwitterFollowBUtton id="twitterfollow1" runat="server"
        Align=""
        ButtonColor=""
        Lang=""
        LinkColor=""
        ShowCount=""
        TextColor=""
        UserToFollow=""
        WidgetWidth=""/>

Notes:

  • Align - valid options are left or right. No default.
  • ButtonColor - hex color value or named color for the button. Default is blue.
  • Lang - default is en.
  • LinkColor - hex color value or named color for the link. No default.
  • ShowCounttrue or false. If true the number of followers will be shown next to the button. Default is true.
  • TextColor - hex color value or named color for the text. No default.
  • UserToFollow - your twitter ID.
  • WidgetWidth - the width you want for the entire widget. No default.

Created: 2011/12/20 -- Joe Davis of i7MEDIA, Your source for elegant mojoPortal solutions.