Page 1 of 1

Add a link to the Comments Plug-in

Posted: Sat Dec 20, 2008 6:45 pm
by codetwists
I'm using the Comments Plug-in. I'd like to add a link for a new coment to the current entry. How can I do that?

Re: Add a link to the Comments Plug-in

Posted: Sat Dec 20, 2008 6:48 pm
by garvinhicking
Hi!

You mean you want to fetch the most recent blog article, and then link to that?

You must then eihter create your own plugin or modify the existing one, to use serendipity_fetchEntry() / serendipity_fetchEntries() to get the most recent entry, and then print out it's links in the generate_content() method of that plugin.

Best regards,Garvin

Re: Add a link to the Comments Plug-in

Posted: Sat Dec 20, 2008 7:29 pm
by codetwists
garvinhicking wrote:You mean you want to fetch the most recent blog article, and then link to that?
No, I just want a link to the same comment entry screen that a user gets when he clicks on the comment link in the bottom of an entry window.

Thanks,

Myron

Re: Add a link to the Comments Plug-in

Posted: Sat Dec 20, 2008 7:41 pm
by garvinhicking
Hi!

But if a user is already there, he must only scroll down to enter a new comment?! Why clutter the sidebar plugin with yet another link, if it actually refers to the same page? I'm not fully sure I understand what you want to do yet. :)

Regards,
Garvin

Posted: Sat Dec 20, 2008 7:42 pm
by Don Chambers
Regular comments are not a plugin. The sidebar comments ARE generated by a plugin. Is that what you are referring to?

Can you provide a URL to your site and verbally describe exactly where you want that?

Add a link to the Comments Plug-in

Posted: Sat Dec 20, 2008 7:51 pm
by codetwists
Don Chambers wrote:Can you provide a URL to your site and verbally describe exactly where you want that?
www.codetwists.com/Blog

In the right sidebar I have the Comments Plug-in. Right now there are no comments. I'd like to have a link in it to allow the reader to access the comment entry window.

Thanks,

Myron

Posted: Sat Dec 20, 2008 7:55 pm
by Don Chambers
Thanks for the link.

Comments are entry-specific, not "site-wide". If you want people to make non-entry-specific remarks, you might look into the shoutbox plugin.