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.

Live look not working

April 19, 2011 2:29am

Subscribe [3]
  • #1 / Apr 19, 2011 2:29am

    Hi,

    I’ve got a live look template specified in the channel administration but the live look function fails to render the content. 

    I don’t have any custom SEO module installed, but each entry has a URL title field that strings together the title.

    This is the working URL for a blog post:
    http://ctenergychallenge.com/blog/comments/14_towns_gather_to_celebrate_official_launch_of_neighbor_to_neighbor_energy

    In the content/edit section, when I click on the live look “View” link, I get this URL for the same blog post.  As you can see, it isn’t much to ‘look’ at:
    http://www.ctenergychallenge.com/blog/comments/23

    FIY, It’s a customized wootheme named ‘Optimize’ under the hood

    Any ideas on why this is breaking?

  • #2 / Apr 19, 2011 4:42pm

    Lisa Wess

    20502 posts

    Well you’ve got no head calls, if you view source:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html >
    <head profile="http://gmpg.org/xfn/11">
    
    
                
    
    
                <div id="main">

    What’s the actual template code for the blog/comment template?

    Thanks!

  • #3 / Apr 21, 2011 9:53am

    Hi Lisa

    Thanks for your reply.

    This is my template code:

    {global_header_before_title}
    {preload_replace:section_name="blog"}
    
    {if segment_2 != "" AND segment_2 == "category"}
            {exp:channel:category_heading channel="{woo_channel}"}
                <title>{category_name} | {section_name} | {site_name} </title>
                {embed="embeds/global_header_after_title"}
            {/exp:channel:category_heading}
    
    {if:elseif segment_1 != "" AND segment_1 == "blog" AND segment_2 != "" AND segment_2 == "comments" }
                {exp:channel:entries channel="blog" limit="1" require_entry="yes"}
                    <title>{title} | {section_name} | {site_name} </title>
                    {embed="embeds/global_header_after_title"}
                {/exp:channel:entries}
    
    {if:else}
            <title>{site_name} | {section_name}</title>
            {embed="embeds/global_header_after_title"}
    {/if}
    
                <div id="main"> 
    
                {embed="blog/sidebar"}
     
                {exp:channel:entries channel="blog" limit="1" require_entry="yes"}
                    <div class="col-content" id="content"> 
                        <div class="grouped">
                            <div class="fb-like1">
                                [removed][removed]<fb:like href="{comment_url_title_auto_path}" layout="standard" show_faces="false" width="340" action="like" font=""></fb:like>
                            </div><!-- fb-like1 -->
                             | By {screen_name}{categories limit="1"} in {/categories}{categories backspace="3"}<a href="http://{path=">{category_name}</a> | {/categories} - {entry_date format="%M %d, %Y"}
                        </div>
                        <h1>{title}</h1> 
    
                        {if blog_image != ""}
                        <span class="inner-picture"> 
                            {exp:teemthumb:size src="{blog_image}" w="280"}
                            <span>{sized}</span> 
                            {/exp:teemthumb:size}
                            <span class="small">{blog_image_caption}</span> 
                        </span>                    
                        {/if}
                        {blog_body}
                    </div><!-- #content--> 
                {/exp:channel:entries}
                </div><!-- Main --> 
    
    {global_footer}

    Thanks for your help!

  • #4 / Apr 21, 2011 10:01am

    Here is the content of global_header_after_title….

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    {if segment_1 != "" AND segment_1 == "blog" AND segment_2 != "" AND segment_2 == "category"}
        {exp:channel:category_heading channel="{woo_channel}"}
            {if category_description !=""}
                <meta name="description" content="{category_description} - We're your go-to source for all the inspiration, information, and news you need to improve your home's comfort and performance."/>
            {if:else}
                <meta name="description" content="We're your go-to source for all the inspiration, information, and news you need to improve your home's comfort and performance." />     
            {/if}            
        {/exp:channel:category_heading}
    
    {if:elseif segment_1 != "" AND segment_1 == "blog" AND segment_2 != "" AND segment_2 == "comments" }
        {exp:channel:entries channel="blog" limit="1" require_entry="yes"}
            {if blog_meta_description != ""}
                <meta name="description" content="{blog_meta_description}"/>
            {if:else}
                <meta name="description" content="{global_meta_description}" />
            {/if}
            <meta property="og:title" content="{title}"/>
            <meta property="og:type" content="article"/>
            <meta property="og:url" content="{comment_url_title_auto_path}"/>
            <meta property="og:image" content="{if blog_image != ""}{blog_image}{if:else}http://ctenergychallenge.com/assets/images/logos/neigbor-to-neighbor_logo_stacked_2c.png{/if}"/>
            <meta property="og:sitename" content="Connecticut Neighbor to Neighbor Energy Challenge"/>
            <meta property="fb:admins" content="578192488"/>
        {/exp:channel:entries}
    {if:else}
        <meta name="description" content="{global_meta_description}" />
    {/if}
    <link rel="alternate" type="application/rss+xml" title="RSS" href="{woo_rss_url}" />
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/effects}' />
    
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/reset}' />
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/style}' />
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/custom}' />
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/prettyPhoto}' />
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=styles/{woo_theme_stylesheet}}' />
    <link rel='stylesheet' type='text/css' media='all' href='/assets/css/uniform.default.css' />
    {!-- <link rel='stylesheet' type='text/css' media='all' href='/assets/css/nivo-slider.css' /> --}
    
    
    <!--[if IE 6]>
    [removed][removed]
    [removed][removed]
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/ie6}' />
    <![endif]-->
    
    <!--[if IE 7]>
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/ie7}' />
    <![endif]-->
    
    <!--[if IE 8]>
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=standard_css/ie8}' />
    <![endif]-->
    
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    </head>
    
    <body class="{embed:body_class}">
        <div id="container">
            <div id="wrapper">
                    <div id="header">
                        <div class="col-full">
                            <div id="logo">
                                <a href="/"></a>
                            </div><!-- /#logo -->
                            <div id="sign-up"></div>
                            <div id="nav">
                                <ul>
                                    <li class="{if segment_1==''}active{/if}"><a href="http://{site_url}">Home</a></li>
                                    <li class="{if segment_1=='join'}active{/if}"><a href="http://{path=">Join Your Neighbors</a></li>
                                    <li class="{if segment_1=='towns'}active{/if}"><a href="http://{path=">Towns</a></li>
                                    <li class="{if segment_1=='blog'}active{/if}"><a href="http://{path=" title="Blog and News">Blog <span class="ampersand">&</span> News</a></li>
                                    <li class="{if segment_1=='events'}active{/if}"><a href="http://{path=" title="Events">Events</a></li>                            
                                    <li class="{if segment_1=='contact'}active{/if}"><a href="http://{path=" title="Contact">Contact</a></li>
                                    {!-- <li class="{if segment_1=='media'}active{/if}"><a href="http://{path=" title="Media">Media</a></li> --}
                                </ul>
                            </div><!-- /#nav -->
                        </div><!-- /.col-full -->
                    </div><!-- /#header -->

    [Mod Edit: Edited post to use [ code ] tags for syntax highlighting.]

  • #5 / Apr 22, 2011 3:52pm

    Brandon Jones

    5500 posts

    Hi snugghomesoftware,

    If you use a very basic template, say with a single exp:channel:entries tag pair for LiveLook, does that work properly? This is a case where we need to reduce and simplify to troubleshoot properly.

  • #6 / Apr 27, 2011 8:32am

    Hi,

    I just realized can use live look when an entry status is ‘open’.  The problem occurs when the status is set to ‘closed’.  Maybe that’s how Live Look works. 
    The simple template below works fine when the entry is open, but fails to load any content when the entry is closed

    Basically, I’m trying to get a site editor to preview a page before it goes live.  How can I do that, if not with Live Look?

    {global_header_before_title}
    <title>Test Live look </title>
    </head>
    <body>
    {preload_replace:section_name="blog"}
            <div id="main"> 
                {exp:channel:entries channel="blog" limit="1" require_entry="yes"}
                    <div class="col-content" id="content"> 
                        <h1>{title}</h1> 
    
                        {if blog_image != ""}
                        <span class="inner-picture"> 
                            {exp:teemthumb:size src="{blog_image}" w="280"}
                            <span>{sized}</span> 
                            {/exp:teemthumb:size}
                            <span class="small">{blog_image_caption}</span> 
                        </span>                    
                        {/if}
                        {blog_body}
                    </div><!-- #content--> 
                {/exp:channel:entries}
                </div><!-- Main --> 
    
    </body>
    </html>
  • #7 / Apr 27, 2011 7:47pm

    Brandon Jones

    5500 posts

    Hi snugghomesoftware,

    By default, the channel entries tag won’t show closed entries. But that’s easy to change  😊

    Does that help?

  • #8 / Apr 28, 2011 2:42am

    Thank you that answered my question!

  • #9 / Apr 28, 2011 8:06pm

    Sue Crocker

    26054 posts

    Glad the information from Brandon helped. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases