ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Posting YouTube--Sometimes posts, sometimes not

November 13, 2009 4:23pm

Subscribe [4]
  • #1 / Nov 13, 2009 4:23pm

    careerguy

    15 posts

    I am trying to embed YouTube video into a front page. When I test it, it works (http://sports.urbana.edu/index.php/page_templates/). When I move it to my live page, it does not (http://sports.urbana.edu/). I have checked in Chrome, IE, FF, and Safari and it is the same in all browsers.

    {exp:weblog:entries weblog="sports_report" limit="1"}
        {embed_code}
    {/exp:weblog:entries}

    Where the

    {embed_code}

    is the embed coding provided by YouTube.

  • #2 / Nov 13, 2009 4:37pm

    Sue Crocker

    26054 posts

    I see the video on both pages, but I’m not a logged in user. Might you be using some sort of logged in code on the main page?

  • #3 / Nov 13, 2009 5:15pm

    careerguy

    15 posts

    Because the video is time sensitive, I also have it hard-coded in currently. You will see on the rendered page that there are actually two videos showing up.

  • #4 / Nov 13, 2009 5:34pm

    Sue Crocker

    26054 posts

    Is this meant to be a single entry page?

  • #5 / Nov 13, 2009 5:38pm

    careerguy

    15 posts

    Yes, we plan to update the video weekly and have the latest video showing. I looged out and checked the “rendered” page and it showed only the hard coded video. I attempted to program as is mentioned in the wiki, but the video was not being rendered that way either.

  • #6 / Nov 13, 2009 6:54pm

    Adam Dorsey

    1439 posts

    Sorry careerguy, I’m a bit confused. Can you walk me through this again?

    When I go to http://sports.urbana.edu/index.php/page_templates/, I see two videos. Is one hard coded, and the other coming from your weblog?

    Can you create a “test” page, with just:

    {exp:weblog:entries weblog="sports_report" limit="1"}
        {embed_code}
    {/exp:weblog:entries}

    ...and send us a link? Thanks!

  • #7 / Nov 14, 2009 12:10am

    careerguy

    15 posts

    Adam, you are correct. I have two videos in the test page you mention. One is hard coded and one is pulling from my sports_report channel. This link has only the sports_report channel in the code: http://sports.urbana.edu/index.php/page_templates/index_test/ and is working fine. The only place it is not working is on the primary index page when pulled directly (without the full template path).

  • #8 / Nov 14, 2009 2:19am

    Adam Dorsey

    1439 posts

    Try adding dynamic=“off” to your weblog tag, like so:

    {exp:weblog:entries weblog="sports_report" dynamic="off"  limit="1"}
        {embed_code}
    {/exp:weblog:entries}
  • #9 / Nov 14, 2009 2:08pm

    careerguy

    15 posts

    That did it, Adam. Thanks!

  • #10 / Nov 14, 2009 2:11pm

    Ingmar

    29245 posts

    Glad to see you’re all set. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases