Comments Link- How to?

8 views
Skip to first unread message

coded kid

unread,
Feb 13, 2012, 7:04:47 AM2/13/12
to Django users
Hi Guys, How can I link to “Django Comment form”, so that when a user
clicks on the “Comment Link Name” It will display the Comment Form on
the same page with the post. I hope you get my point? If you do please
answer and if you don’t ask me to explain further.

Babatunde Akinyanmi

unread,
Feb 13, 2012, 7:26:58 AM2/13/12
to django...@googlegroups.com
Please Rephrase. I don't get the part of "comment link name"

> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

--
Sent from my mobile device

coded kid

unread,
Feb 13, 2012, 8:24:58 AM2/13/12
to Django users
Okay. Just like this. <a href="{% url django.comment %}"/> Comment
Link Name </a>

Where "Comment Link Name" is the name you want to give to your link.
So when a user click on it, it should show the comment form on the
same page. I hope you now get my point?

On Feb 13, 1:26 pm, Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
> Please Rephrase. I don't get the part of "comment link name"
>

Babatunde Akinyanmi

unread,
Feb 13, 2012, 10:38:42 AM2/13/12
to django...@googlegroups.com
Oh ok. Just render the comments as usual then use jquery of pure
javascript to hide it by default. Tie the link to the onclick event
such that it triggers the unhiding of the comment div. Simple.


On 2/13/12, coded kid <duffle...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages