17
Mar
Learned and Web Discussion.  | 

My main complaint about EE is that, as a total noob, I can’t easily figure out how to do away with the /comments URL and put the comment functionality on the post page itself. I’ve set up all the Viget.com and blog links to direct to /comments, so users who click on the title end up reading the full post with comments.

With this came another issue: We have a setup that shows a mix of summary, body, and extended depending on how you’re reading, and the only way I could figure out to show Body and Extended together was to test for the url_segment “comments.” So, /comments looked fine, the main blog page looks fine, the categories look fine…

But there’s still the nagging issue of the actual post’s URL. Even though there are no links to the direct URL title, there are bound to be cases where comments gets trimmed off or redirects don’t work perfectly, and the user gets treated to half a post (in the case of summary or extended articles) with a “continue reading” link.

ANYHOW, I figured out that this little guy:

{if segment_2 == url_title }

is the easy way to test if a user’s on the actual entry or not, and I can display the extended post with a comment count for easy navigatin’.

I know, it’s really simple, but it is all I learned today.



Leave a Reply