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.

weblogs not displaying only on certain pages but work fine elsewhere

September 08, 2008 6:47pm

Subscribe [2]
  • #1 / Sep 08, 2008 6:47pm

    chuckreynolds

    13 posts

    1st on the homepage I have listed the categories with their information and once worked a while back but they will not display anymore.

    <div id="content">
    
    {exp:weblog:category_heading style="linear"}
      <div class="unitDisplay">
        <div class="unitLeftCol">{category_image}</div>
        <div class="unitRightCol"><h1 class="home{category_name} imghead">{category_name}</h1>
        {category_description}
        <a href="http://{path=listings/view}">Learn More</a></div>
      </div>
      <div class="clear"></div>
    {/exp:weblog:category_heading}
    
    </div><!-- end #content -->


    2nd issue is we have a footer that’s included on every page and had a few columns, the first of two pull an excerpt from one of two pages, the about page then the contact page.  This footer works fine on ALL pages and category pages in the site, until you goto a post page within one of the categories.
    But it’s the same embed/include footer as every other page.

    <div class="footcol">
            <h3 class="about imghead">About</h3>
            {exp:weblog:entries weblog="site_pages" entry_id="5" disable="trackbacks|comments"}
                  {summary}
                  {/exp:weblog:entries}
            <a href="http://{path=">About xxxxx</a>
        </div>
        <div class="footcol">
            <h3 class="contact imghead">Contact</h3>
            {exp:weblog:entries weblog="site_pages" entry_id="6" disable="trackbacks|comments"}
                  {summary}
                  {/exp:weblog:entries}
            <a href="http://{path=">Contact us</a>
        </div>


    We’ve checked for open tags, rewritten the code, etc etc and have just assumed it’s some kind of bug or something as two of us developers just can’t put a finger on what it’s messing up.  No matter what we try be it admin settings or url rewrites or anything have been able to fix the problem.

    REALLY need help on this as client site needs to softlaunch like yesterday. :/  priority = high.

    Thanks in advance for your help!

    [Mod Edit: Moved to the Technical Support forum]

  • #2 / Sep 08, 2008 7:23pm

    Sue Crocker

    26054 posts

    chuckreynolds, what happens if you add dynamic=“off” to your exp:weblog:entries tag?

    For your exp:weblog:category_heading tag, try adding weblog=“whatever” where whatever is your weblog short name.

  • #3 / Sep 08, 2008 7:37pm

    chuckreynolds

    13 posts

    Thx Sue

    the dynamic=“off” fixed the footer embed issue on the properties pages…


    The homepage with the categories still do not work however… adjusted code:

    {exp:weblog:category_heading weblog="properties" style="linear"}
      <div class="unitDisplay">
        <div class="unitLeftCol">{category_image}</div>
        <div class="unitRightCol"><h1 class="home{category_name} imghead">{category_name}</h1>
        {category_description}
        <a href="http://{path=listings/view}">Learn More</a></div>
      </div>
      <div class="clear"></div>
    {/exp:weblog:category_heading}
  • #4 / Sep 08, 2008 7:42pm

    chuckreynolds

    13 posts

    Actually I may have just fixed the home page issue.  Changed exp:weblog:category_heading to exp:weblog:categories

    {exp:weblog:categories weblog="properties" style="linear"}
      <div class="unitDisplay">
        <div class="unitLeftCol">{category_image}</div>
        <div class="unitRightCol"><h1 class="home{category_name} imghead">{category_name}</h1>
        {category_description}
        <a href="http://{path=listings/view}">Learn More</a></div>
      </div>
      <div class="clear"></div>
    {/exp:weblog:categories}

    ... now displays okay as far as I can tell.  I have to really tweak the urls but seems to be ok.  I have to read more into that dynamic=“off” switch too evidently.

    TY!

  • #5 / Sep 08, 2008 7:48pm

    Sue Crocker

    26054 posts

    No worries.. glad you were able to fix the first issue as well. Dynamic=“off” is one of those things you need to pay attention to when ever your URI has a third segment in it.

    Don’t hesitate to post again if needed.

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

ExpressionEngine News!

#eecms, #events, #releases