Social Media Sharing

Permalink Browser Info Environment
I am trying to get my social media "Sharing" bar to work but I can't seem to get it to work even with using placeholders. My code is:

<div class="smsharel">
  <div class="smshtext">
    <div class="artsish">Share On:</div>
    <div class="artsifb"><a href="https://www.facebook.com/sharer.php?u={{PAGEURL}}"></a></div>
    <div class="artsitw"><a href="http://twitter.com/intent/tweet?source=sharethiscom&text=<field name="Title:" />&url={{PAGEURL}}"></a></div>
    <div class="artsigo"><a href="https://plus.google.com/share?url={{PAGEURL}}"></a></div>
  </div>
</div>
<div class="smsharer">
  <div class="smstxtr">
    <div class="artsipr"><a href="javascript:window.print()"></a></div>
    <div class="artsiem"><a href="mailto: ?subject=<field name="Title:" />"></a></div>
  </div>
</div>


No matter what configuration I put in there I can't get it to work. Any help would be greatly appreciated.

Type: Discussion
Status: New
apage50
View Replies:
jgarcia replied on at Permalink Reply
jgarcia
You need to use the placeholder attribute.

<field name="Whatever" placeholder="something" />
<a href={{something}}">Link</a>


Using the placeholder attribute causes the <field /> element to not output anything, but instead replace any instance of the placeholder value (in this case, "something") surround by double curly brackets with that value. Make sense?

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.