Twitter Feed Block Not Displaying 7.0.2

Graham Lewis's Avatar

Graham Lewis

27 Jul, 2012 02:47 PM

We just upgraded to 7.0.2 and I have created a Twitter Feed Block - when viewing the block itself, I see the twitter feed. When I add that block to a page, I no longer see the feed. It also does not display when the page is published.

  1. Graham Lewis closed this discussion on 27 Jul, 2012 02:49 PM.

  2. Graham Lewis re-opened this discussion on 27 Jul, 2012 02:49 PM

  3. 1 Posted by Graham Lewis on 27 Jul, 2012 02:56 PM

    Graham Lewis's Avatar

    Didn't mean to close it

  4. 2 Posted by Ryan Griffith on 30 Jul, 2012 04:11 PM

    Ryan Griffith's Avatar

    Hi glewis,

    Just a few questions to see if we can narrow things down a bit:

    • When you are viewing the published page, can you check to see if there are any JavaScript errors?
    • When you view the source of the page, can you confirm there is a div that looks something like <div id="twitter-feed-block_....">
    • Can you confirm there is no conflicting CSS that may be hiding the Twitter Stream <ul> list?

    Please let us know if you have any questions.

    Thanks.

  5. 3 Posted by Graham Lewis on 30 Jul, 2012 04:55 PM

    Graham Lewis's Avatar

    Ryan,

    Looking at the published page, http://www.jsu.edu/sandbox/test2.html , there doesn't seem to be any errors on it. Also there is nothing in the source showing any <div> - also there shouldn't be anything in the CSS messing it up (that I am aware of)

    Graham Lewis
    Webmaster
    Jacksonville State University

    256.782.5331
    www.jsu.edu

  6. 4 Posted by Ryan Griffith on 30 Jul, 2012 05:36 PM

    Ryan Griffith's Avatar

    Hi Graham,

    It looks as though the Twitter block content or JavaScript is not being included on the page. Can you confirm the block has been added to the one of the page's Configuration Set or Template Regions?

    This may also explain the cause of the feed not appearing when viewing the page within Cascade.

  7. 5 Posted by Graham Lewis on 30 Jul, 2012 05:38 PM

    Graham Lewis's Avatar

    I added it in the block chooser in the Data Definition - do I need to add it a different way?

    Graham Lewis
    Webmaster
    Jacksonville State University

    256.782.5331
    www.jsu.edu

  8. 6 Posted by Ryan Griffith on 30 Jul, 2012 06:04 PM

    Ryan Griffith's Avatar

    From what I am seeing, there's no way to access the actual data of a Twitter Block, so I believe the Twitter Block is a special case where you would want to apply the block at the Region level. This can be done by adding it to a region's Block field within a Template's Configuration or Configuration Set.

    The following screenshots demonstrate how you can apply the Twitter Block to a region and preview it's output.

    Please let me know if you have any questions.

    Thanks.

  9. 7 Posted by Graham Lewis on 30 Jul, 2012 06:09 PM

    Graham Lewis's Avatar

    Oh ok - so there is now way to have both the Twitter Feed Block and the WYSIWYG content in the same area? I was wanting to include it on a departmental page, but keep what they have. I can modify the template to add a region, under the WYSIWYG, but I wanted to be able to customize a bit more of where I wanted it to go without have to do a lot of template modifications. Does it say anywhere in the documentation that it has to be done in the config set or template? I didn't see it if it was - I could have over looked it though.

    What makes that the block chooser in the config set and the block chooser in the data definition different?

    Graham Lewis
    Webmaster
    Jacksonville State University

    256.782.5331
    www.jsu.edu

  10. 8 Posted by Ryan Griffith on 30 Jul, 2012 06:13 PM

    Ryan Griffith's Avatar

    Let me ask around to confirm, but I believe the Twitter Blocks are special blocks that are rendered dynamically within a region, as apposed to being transformed using a Format.

  11. 9 Posted by Graham Lewis on 30 Jul, 2012 06:16 PM

    Graham Lewis's Avatar

    Ok - thanks for asking around for me.

    Graham Lewis
    Webmaster
    Jacksonville State University

    256.782.5331
    www.jsu.edu

  12. 10 Posted by Ryan Griffith on 30 Jul, 2012 07:44 PM

    Ryan Griffith's Avatar

    Graham,

    I have confirmed that the Twitter Block is a special case in which the Twitter data is only outputted when the block is applied to a region, and the tweet data is not stored within Cascade. When using the block in a Data Definition chooser, you will only have access to the block's metadata such as name, path, etc.

    Depending on your template, the most minimal change would be to add an additional region directly above/below the region that transforms the WYSIWYG content. This of course assumes your template has a container that surrounds the content. Something like the following:

    <div id="container">
        <system-region name="TWITTER" />
        <system-region name="USER CONTENT" />
    </div>
    

    Another option could be to use an XML Feed Block of the account's tweets using the Twitter API. The URL would be something like http://api.twitter.com/1/statuses/user_timeline.rss?screen_name={SCREEN NAME}. This would allow you to transform the RSS feed along with the WYSIWYG content using a Format.

    Please let me know if you have any questions.

    Thanks.

  13. 11 Posted by Graham Lewis on 30 Jul, 2012 07:55 PM

    Graham Lewis's Avatar

    Ryan - thanks! That is exactly what I did - I just added a system region to my template and added it in and the configuration set.

    Thanks for all the help!

    Graham Lewis
    Webmaster
    Jacksonville State University

    256.782.5331
    www.jsu.edu

  14. 12 Posted by Ryan Griffith on 30 Jul, 2012 08:01 PM

    Ryan Griffith's Avatar

    Hey Graham, not a problem glad to hear you got things working!

    I'm going to go ahead and close this discussion, but feel free to reply or comment to re-open this discussion if you have any additional questions.

    Thanks.

  15. Ryan Griffith closed this discussion on 30 Jul, 2012 08:01 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM