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.

entry render issue

January 05, 2010 12:22pm

Subscribe [2]
  • #1 / Jan 05, 2010 12:22pm

    brankin

    150 posts

    I have not run into this problem before so I am sure that I am missing something simple but here is what is going on. (ee 1.6.8)

    On my index page I have the most recent entry at the top and then the previous two “panels” below it. This works fine but if you click on one of the images for the previous entries to take you to the larger version of it the “panels” are not rendering any entry content.

    I have tried the same {exp:weblog:entries} code, pulling it as an embed, and removing all tags except for which weblog to pull from and the html for that section renders blank.  below is my index page code followed by the letter_detail code.  Any insight would be appreciated.

    The issue is with the second weblog call in the second portion of code.

    Thanks,
    Bryan

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html >
    <head>
    <title>The Letters - 22:37 Design</title>
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/reset}" />
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/grid}" />
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/style}" />
    
    </head>
    <body>
                    
    
    <div id="header" class="container_3">
    
        <div id="Logo" class="grid_2">
            <a href="http://{site_url}"><h1 class="logo">The Letters</h1></a>
        </div>
    
        <div id="social" class="grid_1 ">
            <ul class="inline float_right social">
                <li><a href="http://{path=site/rss}">images/icons/Social_RSS.png</a></li>
                <li><a href="#">images/icons/Social_Facebook.png</a></li>
                <li><a href="http://twitter.com/2237design">images/icons/Social_Twitter.png</a></li>
            </ul>
        </div>
    
    </div>
    
    <div class="clear"></div>
    
    <div id="content" class="container_3">
    
        <div id="todays_letter" class="grid_3 ">
    {exp:weblog:entries weblog="the_letters" limit="1" sort="desc" disable="member_data|pagination|trackbacks" show_future_entries="no"}
        {large_letter}
    {/exp:weblog:entries}
        </div>
    
    </div>
    
    <div class="clear"></div>
    
    <div id="content2" class="container_3">
    {exp:weblog:entries weblog="the_letters" sort="desc" limit="2" offset="1" disable="pagination|trackbacks"}
        <div id="" class="grid_1 previous">
            <a href="http://{title_permalink=site/letter_detail}">{large_letter}</a>
        </div>
    {/exp:weblog:entries}
    
    
        <div id="" class="grid_1 previous">
    <a href="http://{site_url}index.php/calendar">{site_url}images/letter_cal.png</a>
        </div>
    
    </div>
    
    <div class="clear"></div>
    
    {embed="embeds/footer"}
    </body>
    </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html >
    <head>
    <title>The Letters - 22:37 Design</title>
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/reset}" />
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/grid}" />
    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=stylesheets/style}" />
    
    </head>
    <body>
                    
    
    <div id="header" class="container_3">
    
        <div id="Logo" class="grid_2">
            <a href="http://{site_url}"><h1 class="logo">The Letters</h1></a>
        </div>
    
        <div id="social" class="grid_1 ">
            <ul class="inline float_right social">
                <li><a href="#">{site_url}images/icons/Social_RSS.png</a></li>
                <li><a href="#">{site_url}images/icons/Social_Facebook.png</a></li>
                <li><a href="http://twitter.com/2237design">{site_url}images/icons/Social_Twitter.png</a></li>
            </ul>
        </div>
    
    </div>
    
    <div class="clear"></div>
    
    <div id="content" class="container_3">
    
        <div id="todays_letter" class="grid_3 ">
    {exp:weblog:entries weblog="the_letters" disable="trackbacks" limit="1"}
        {large_letter}
    {/exp:weblog:entries}
        </div>
    
    </div>
    
    <div class="clear"></div>
    
    <div id="content2" class="container_3">
    {exp:weblog:entries weblog="the_letters" sort="desc" limit="2" offset="1" disable="pagination|trackbacks"}
        <div id="" class="grid_1 previous">
            <a href="http://{title_permalink=site/letter_detail}">{large_letter}</a>
        </div>
    {/exp:weblog:entries}
    
    
        <div id="" class="grid_1 previous">
    <a href="http://{site_url}index.php/calendar">{site_url}images/letter_cal.png</a>
        </div>
    
    </div>
    
    
    <div class="clear"></div>
    
    {embed="embeds/footer"}
    
    </body>
    </html>
  • #2 / Jan 08, 2010 11:33pm

    brankin

    150 posts

    bumping…

    Any ideas?  Does the url segment affect the weblog tag in any way?  I haven’t run into this before and can’t seem to rectify the issue.

    Thanks
    Bryan

  • #3 / Jan 09, 2010 12:15pm

    Rob Sanchez

    335 posts

    You need to include dynamic=“off” in the weblog entries tag (of your previous letter panels) from your letter_detail template:

    {exp:weblog:entries weblog="the_letters" dynamic="off" sort="desc" limit="2" offset="1" disable="pagination|trackbacks"}
        <div id="" class="grid_1 previous">
            <a href="http://{title_permalink=site/letter_detail}">{large_letter}</a>
        </div>
    {/exp:weblog:entries}

    Without that dynamic=“off” parameter, the entries tag is looking at your final url segment to determine which entries to show.

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

ExpressionEngine News!

#eecms, #events, #releases