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.

All blog links show index page

February 10, 2011 8:22am

Subscribe [1]
  • #1 / Feb 10, 2011 8:22am

    Nightshade

    22 posts

    I have a blog set up on my EE site. The url is <domain>/blog/. When I visit individual post pages at <domain>/blog//  or a post page eg <domain>/blog/2011/02/  it still shows my ‘index’ page, the list of 10 blog posts. The page title changes, but everything else is the same as my blog index page.

    What could be causing this?

  • #2 / Feb 10, 2011 8:28am

    Nightshade

    22 posts

    I just found this was caused by ’ dynamic=“off” ‘

    Sorry, I can’t delete my original post.

  • #3 / Feb 10, 2011 9:08am

    Nightshade

    22 posts

    A new problem: if I remove dynamic=“off”, my individual blog pages now work, but my blog index shows up without any posts. I am using:

    {exp:weblog:entries weblog="Blog" orderby="date" sort="desc" limit="10" disable="member_data|trackbacks"}

    So I tried to get around this with this code:

    {if segment_2 == ""}
                {exp:weblog:entries weblog="Blog" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks" dynamic="off"}
            {if:else}
                {exp:weblog:entries weblog="Blog" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks"}
            {/if}

    But end up with the error:
    Parse error: syntax error, unexpected T_ELSE in /home/sites/artworkersguild.org/public_html/system/core/core.functions.php(634) : eval()‘d code on line 88

  • #4 / Feb 10, 2011 3:19pm

    Ingmar

    29245 posts

    No, you can’t split tags like that. A regular {exp:weblog:entries} tag should be all that’s needed: it will show and “index” style page unless you specify an url_title in which case it will work as a simple page template.

    What version and build of EE are you using? Do you’ve got a link?

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

ExpressionEngine News!

#eecms, #events, #releases