Re: how to identify entry page in templates

will <[email protected]> Sat, 02 Aug 2008 09:02:05 -0400
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
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?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/