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.

things break when entry date is added to the url

May 21, 2009 11:40am

Subscribe [2]
  • #1 / May 21, 2009 11:40am

    bobh

    145 posts

    Hi,

    I’ve modified an EE install to add an entry date to its urls. However, some things have stopped working on my single entry pages:

    - the total_comments variable always equals to 0.
    - my tell-a-friend form won’t show up any more (it should be rendered in the sidebar directly under the social icons).

    Live links:

    http://klanten.taggetig.be/toasted/forty_sixty_tees/ (works just fine)
    http://klanten.taggetig.be/toasted/2009/05/20/forty_sixty_tees/ (breaks total_comments & tell-a-friend)

    My guess is all this is caused by the fact that using the date segments makes EE render the page like a category page. I tried countering this with some dynamic=“off” & url_title=”{segment_4}” parameters but no luck.

    Are there any options left or do I have no other choice than to ditch the date segments?

  • #2 / May 21, 2009 11:49am

    bobh

    145 posts

    edit: double post, please remove

  • #3 / May 21, 2009 11:58am

    Sue Crocker

    26054 posts

    Untested, but try {segment_5} instead.

  • #4 / May 21, 2009 12:13pm

    bobh

    145 posts

    no changes I’m afraid Sue

  • #5 / May 21, 2009 12:16pm

    bobh

    145 posts

    probably should have mentioned EE is running in the ‘toasted’ subdir.

  • #6 / May 21, 2009 12:24pm

    Sue Crocker

    26054 posts

    Hmmm… have you considered using the Pages module for this?

  • #7 / May 21, 2009 12:35pm

    bobh

    145 posts

    What are the advantages in this case? I know how the Pages module works but have I have zero experience using it.

  • #8 / May 21, 2009 12:50pm

    Sue Crocker

    26054 posts

    You’d create a template for your single entries, and use that.

    http://eehowto.com/2009/05/20/free-or-trial-versions

    I did just that.. /2009/05/20/free-or-trial-versions is what I set the page to be.

    NOTE: I’m removing index.php via .htaccess.

    Sure, it takes an additional minute to set this up, but it works well.

  • #9 / May 21, 2009 1:31pm

    bobh

    145 posts

    Ah I see, all segments, including the dates, would have to be added manually. That seems a little to much effort for my client so I’ll stick to the date-less urls. Thanks Sue.

  • #10 / May 21, 2009 1:33pm

    Sue Crocker

    26054 posts

    Works for me. 😊 Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases