EllisLab text mark
Advanced Search
     
Add entry_id to Comment Page URL?
Posted: 15 March 2012 02:42 PM   [ Ignore ]
Avatar
Joined: 2003-01-07
693 posts

I’m seeking a way to have a little more control over the Comment Page URL. You know, the one that is set as the comment back link for each channel, that dynamically sets up the URL that is sent out in comment email notifications.

Currently we’re getting:

http://asitedomain.com/blog/comments/url_title

And what we really, really want is:

http://asitedomain.com/blog/comments/url_title/entry_id/#comments

That way we can feed the correct permalink to all our social networking buttons, and take returning visitors right down the page to where the comments are.

Is there anyway within EE (short of a hack) to format this Comment Page URL?

Thanks.

 Signature 

learn more at eeSiteKit.com


NetRaising | a web services company


Custom Designed Dynamic Websites for Mission Driven Organizations

 
Posted: 16 March 2012 01:27 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hello Kurt,

Thank you for posting your question.

You could give this Add-On a try which will get the entry_id for you. Using that you could append the id and try the anchor to the comments.

Let me know if that works for you. I have not used the Add-On before, but it looks about right.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 21 March 2012 02:54 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2003-01-07
693 posts

Please see attached screen shot.

The link I want to have more control over is set in channel admin, and what I’m looking for is some way to set it (build it) at the tag level.

Does this explain my question a little better?

I don’t think that Add-on would help unless there’s a way to set this link at the tag level, right?

 Signature 

learn more at eeSiteKit.com


NetRaising | a web services company


Custom Designed Dynamic Websites for Mission Driven Organizations

 
Posted: 23 March 2012 05:59 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-13
3805 posts

Hi Kurt,

In that setting have you tried something like this:

/blog/comments/

And then in your template code use this:

{comment_url_title_auto_path}{entry_id}#comments 

Sean

 Signature 

web: Caffeine Creations twitter @CS_sean

 
Posted: 23 March 2012 06:56 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2003-01-07
693 posts

Hi Sean,

That’s just it, where in the template code (what parameter?) can I control what get’s emailed out in the comment notification emails?

Setting a link from a page to a page in EE isn’t the challenge, it’s setting the link displayed in the notification email back to a page.

As it is now, we’ve had to set up a separate comment template in EE, just to catch folks clicking links in emails. That’s kind of silly at this point in the game.

 Signature 

learn more at eeSiteKit.com


NetRaising | a web services company


Custom Designed Dynamic Websites for Mission Driven Organizations

 
Posted: 27 March 2012 05:17 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hey Kurt,

You can edit that in the nefarious Email Notification templates.

I’d look in Design->Message Pages->Email Notifications and edit User Comments Added Notification and User Comment Notification

I think you could swap out {comment_url} with {comment_url_title_auto_path}#comments and be all set.

Cheers,

 Signature 

How may I help you?

 
Posted: 27 March 2012 05:54 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2003-01-07
693 posts

Ah… that’s right. I set up blogs so infrequently these days, I completely forgot about those templates.

I’ve added the new paths, now lets see of they’ll work.

What I needed is to have both the url_title AND the entry_id, and EE tends to think of those two as exclusive of each other, so it’s “auto-paths” are typically useless for us.

Thanks Dan!

 Signature 

learn more at eeSiteKit.com


NetRaising | a web services company


Custom Designed Dynamic Websites for Mission Driven Organizations

 
Posted: 30 March 2012 05:49 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey Kurt,

How are things going on this one?

How are the paths working out?

Have a great weekend!

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade