1. 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

Discussion in 'Closed Suggestions' started by Brogan, Jan 18, 2011.

  1. Brogan

    Brogan XenForo Moderator Staff Member

    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 :)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  3. Peggy

    Peggy Well-Known Member

    I haven't upgraded my test board since Beta 5, but will upgrade it if you want to use it.
    Brogan likes this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  5. Peggy

    Peggy Well-Known Member

    Ok I'll do the upgrade now and let you know when it's ready.
  6. Peggy

    Peggy Well-Known Member

    And the pages you made are still on there too.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    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:include template="sidebar_share_page" />
    dieketzer likes this.

Share This Page