• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented  Add Facebook Recommend and Twitter buttons to Pages

Brogan

XenForo moderator
Staff member
#1
I'm going to be making extensive use of Pages on my site with some content which is a big draw.

Unfortunately there's currently no way to share that content as the FB and Twitter buttons aren't present in the Page template.

It would be nice if this functionality was included, either by default or ideally as an option per page.

What would be great is functionality similar to the sidebar without the visitor panel, or even a simple <xen:shareButtons></xen:shareButtons> so the buttons can be added as part of the page content HTML :)
 

Brogan

XenForo moderator
Staff member
#2
I was wondering whether anyone had tried adding either of the share page templates to a Page and if it works?

Unfortunately I don't have a working installation so can't test it.
 

Brogan

XenForo moderator
Staff member
#4
That would be great Peggy :)

I'm just curious as to whether adding the share page template will allow Pages to be tweeted and recommended.
 

Brogan

XenForo moderator
Staff member
#7
I guess this can be marked as resolved as simply adding the share page template(s) does the job :)

If you want the buttons at the bottom of the page, use:
<xen:include template="share_page"/>

If you want them in the sidebar, use:
<xen:sidebar>
<xen:include template="sidebar_share_page" />
</xen:sidebar>