|
From: will <wi...@bl...> - 2008-08-02 13:02:00
|
Hello! You'll need to write a plugin to do it. Maybe use the "story" callback, check to see if only one entry is being shown and if so, then populate a $discuss_js variable with one set of stuff and if not, populate it with the other set of stuff. The comments plugin does this, too, so that may be a good start, but it's a big plugin so it might be hard to find what you're looking for in there. I'm about to run out for the morning, otherwise I'd toss together a skeleton right now. Sorry about that. If you need help, let me know. As an aside, it'd be good to have a disqus plugin--managing comments is not trivial even with all the comment rejection plugins and all the other things available. /will Wu Zhe wrote: > I am using http://disqus.com/ for comments in my blog, it require > different javascript code to embed into the blog entry pages and index > pages, How can I differentiate entry page and index page in templates > in order to insert the right javascript? |