Needs work
Project:
Javascript Tools
Version:
5.x-0.6
Component:
Proposed new addition
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2007 at 01:09 UTC
Updated:
14 Apr 2010 at 16:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nedjoYes, this would be relatively easy to do for node teasers - comments too - and I would welcome a patch.
Comment #2
ica commentedUnfortunatley i dont have js and php skills -if i had i would straight come up with a patch.
I also have to say I have downloaded the script and tried to integrate to a Drupal theme - as a simple top menu expand - collapse, and i admit failed to make the idea work...
-than i though it can be another feature in JS tools module as 'collapsinode' - maybe someoneelse might pickup the idea hopefully
Comment #3
Anonymous (not verified) commentedYes, it would be interesting to see this feature implemented.
Comment #4
NaX commentedI have been looking into a comment spoiler system for a review site. And I am very glad to have run into this issue; it pointed me in the right direction.
My JS skills are very poor. I tend to work from example only. If somebody else has not done it yet, then I tend to get stuck.
The attached JS file is what I am hoping to use for showing and hiding comments. It seems to work fine; the only problem I am having is with the comment API.
I can’t find a way to add the relevant html to the comments with out it being ugly. So for the moment I am adding the relevant html manually to my theme.
Maybe I am missing something but I can’t find a way to add wrapping divs to the comments without getting in the way of other comment modules or messing with the theme system.
It’s all still very ruff, and I left a lot of comments in the JS file for anybody else that would want to take this further.
Here is an example comment.tpl.php (Garland) for use with this JS file.
Hope somebody finds this useful.
Comment #5
tim.plunkettSo, any further developments on this so-called "collapsinode" feature?
Comment #6
jamesmcd commentedAlso interested in this, any progress?
Comment #7
Roar-1 commentedThis would be really cool.
Comment #8
hawleyal commentedsubscribing