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.

404 triggering for entries from certain weblogs

November 13, 2009 12:16pm

Subscribe [3]
  • #1 / Nov 13, 2009 12:16pm

    taktak

    24 posts

    Hey,
    Got my previous question about 404’s resolved here. But as I solved that one another weird one emerged.

    I have one template for viewing entries from two different weblogs, ‘General pages’ weblog is working fine(structure is used on this one, maybe that’s why?). But ‘Footer navigation’ is always generating 404’s if I have a 404 set in template preferences. But it works fine if I don’t set a 404 page, but then of course I rarely(if ever) get any 404’s.

    “Enable Strict URLs” can be set to no or yes but it does not affect it at all. http://www.domain.com/page/ doesn’t show, but http://www.domain.com/template_group/page/ shows up fine which boggles me since it should be fairly similar?

    Anyone got a clue what I could be doing wrong here?

    /Chris

  • #2 / Nov 13, 2009 12:39pm

    Ingmar

    29245 posts

    What version and build of EE are you on? Do you’ve got a link? Or some code, perhaps?

  • #3 / Nov 13, 2009 1:50pm

    taktak

    24 posts

    I’m on ExpressionEngine 1.6.8 - Build:  20091002

    Can’t post the url but I’ll PM it to you, the main menu works fine, but the footer navigation doesn’t work.

    My index template:

    {embed="site/html_head"}
    {embed="site/header"}
    {embed="site/content"}
    {embed="site/footer"}


    My content template:

    {exp:weblog:entries weblog="general-page|footer-navigation" limit="1" require_entry="yes"}
                    <div id="body-content" {if body-left != "" AND body-right != ""}class="three-column"{if:elseif body-left != ""}class="two-column-small-left"{if:else}class="two-column-small-right"{/if}>
                        {if body-left != ""}
                        <div class="left-content">
                            {body-left}
                        </div>
                        {/if}
                        <div class="main">
                            <div class="title-content"><h2>{title-main}</h2>
    <p>                            {if title-secondary != ""}</p><h2>{title-secondary}</h2><p>{/if}<br />
                            </div><br />
                            <div class="middle-content"><br />
                                {body-main}<br />
                            </div><br />
                            {if body-right != ""}<br />
                            <div class="right-content"><br />
                                {body-right}<br />
                            </div><br />
                            {/if}<br />
                            {if body-bottom != ""}<br />
                            <div class="bottom-content"><br />
                                {body-bottom}<br />
                            </div><br />
                            {/if}<br />
                    </div><br />
                    {/exp:weblog:entries}

  • #4 / Nov 13, 2009 3:29pm

    Sue Crocker

    26054 posts

    Could it be a simple as needing dynamic=“off” for your exp:weblog:entries tag in the footer?

  • #5 / Nov 17, 2009 11:15am

    taktak

    24 posts

    Hey Sue, the footer displays fine, it’s just that the weblog posts didn’t display but general pages did. I solved it by creating a template group called footer which solved my problems, even though I think it would look better without the /footer/ in the url, but at least it’s working correctly!

  • #6 / Nov 17, 2009 11:50am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases