On Mon, 2008-07-07 at 05:57 -0700, Aljosa Mohorovic wrote: > when using django.contrib.comments how can i use dynamic vars? > in current page context i have object_type="news.News" and > object_id="2" so i would like to do something like {% > get_comment_count for object_type object_id as comment_count %} > > couldn't find any info on > http://code.djangoproject.com/wiki/Tutorials#DjangosCommentsFrameworkdjango.contrib.comments
Just copy the code for get_comment_count and create your own tag from it with support for the features you need. You'll need this: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---