Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike 4 posts 24 karma points
    Jun 25, 2013 @ 13:50
    Mike
    0

    Twitter Across multiple pages

    I am wondering if someone is able to help with my query.

    I am wanting to embed the 'Latest Tweets' feed across all pages in my website. Currently, I can only get it to work on the homepage. Has anyone achieved this in their own websites? Any ideas/solutions/help will be greatly appreciated

    Thanks in advance.

    Mike

  • Andrew Johns 6 posts 26 karma points
    Feb 13, 2014 @ 02:56
    Andrew Johns
    0

    Did you ever figure this out?

    I was attempting to put the twitter feed on a container doc type and all of it's immediate children.  I assumed if I put the the twitter datatype on a container doctype, then had the item doctype inherit from that, the twitter property is inherited. Except it appears I need to actually authorise it on every page.  So my first thought was to modify the latest tweets partial example to get the property value recursively, or use AncestorOrSelf(1). somewhere.  But being new to Umbraco I've not quite figured it out yet.

    Perhaps I'm missing something obvious.

  • Michael Sims 119 posts 387 karma points
    Mar 06, 2014 @ 15:13
    Michael Sims
    0

    Yes - I did - I had to change the line in the xslt file to the following (where twitter is the property):

    <xsl:variable name="config" select="$currentPage/ancestor-or-self::* [@isDoc]/* [@isDoc and string(twitter) !='']/twitter/uTwit" />

Please Sign in or register to post replies

Write your reply to:

Draft