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.

Cannot get entries to display

March 31, 2011 10:49pm

Subscribe [2]
  • #1 / Mar 31, 2011 10:49pm

    ll23

    7 posts

    I have a new install of EE2, and have used EE1.x. (Using v3.2.1 Build 20101220)

    I am using templates that seem to be working correctly, that is, successfully outputting content and embedding the header/footer/css using EE tags.

    I have just set up a couple of channels, and went back to the docs and set up the ‘Example’ channel/status/template group too, just to make sure I wasn’t missing anything but I cannot get the templates to output entries.

    Here’s my template:

    {embed="includes/header" bodyclass="about layoutB"}
        {exp:channel:entries channel="about" orderby="date" limit="1" status="open"}
        {if no_results}No results.{/if}
        
        <div id="main" role="main">
            <h1>{title}</h1>
            <h2>{about_subtitle}</h2>
    <p>        {about_main}<br />
        </div><br />
        <div id="sidebar"><br />
            {about_widgets}<br />
        </div><br />
        {exp:channel:entries channel="about" limit="1" status="open"}<br />
    {embed="includes/footer"}

    The result is embeds work for header/footer, etc. but the entries tags are output on the screen so the page displays {title} as the heading, etc.

    I have triple-checked the channel name, set & reset the status to open.
    The path setting is: http://domain.com/about/. On the ‘example’ channel preference it is http://domain.com/index.php/example and doesn’t even output the EE tags.

    Given that my server enviro checked out during install and embeds are working…I have no idea what’s going on. The htaccess rewrite to remove index.php seems to be working fine, although I commented it out, and using index.php in URLs yields same result.

    Please let me know if I can provide additional info that would help with diagnosis. The site is not yet public and I can provide domain name and user/pass on request but don’t want to post publicly. Thank you!!!

  • #2 / Mar 31, 2011 11:09pm

    ll23

    7 posts

    Short answer: Admin > System Administration > Output & Debugging > Display Template Debugging.

    Dang, I’m not authorized to delete this! How embarrassing! Note the “closing tag” or rather the lack thereof.

    How I managed to do this even when following the example again - I created a new post in the example channel and managed to not actually submit it.

    All in all, it’s clear I’ve been working WAY too long today.

  • #3 / Apr 01, 2011 11:33am

    Sue Crocker

    26054 posts

    We’ve all had days like this. 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