By soezkan on
Hi there,
I wonder how I can manage to make texts collapsible?
Have tried with the collapse_text module, but it does not work.
Even though I configured my Input format FULL-HTML by
incuding the [collpase][/collpase]-Tags the content does
not show a collapsible field.
In the page text I used it like that:
[collapse]
<h1>My collapser</h1>
ANY TEXT TO TEST THIS
[collapse]
When I look at the HTML-source I can see the above (code)
and also I see, that the modules' Javascript has been included.
But simply nothing happens :(
Could please somebody help here?
Is there another way to make text collapsible?
Thank you for your help in advance!
Soezkan
Comments
...
i just installed this module and it worked fine for me.
probably just a typo, but the closing bit of your code should be
[/collapsed, not[collapsedas you have written.per the module description page, perhaps fiddle around with the order of your input formats. maintainer implies that module won't work under certain configurations of input filters.
Thanks for replying. It was
Thanks for replying. It was indeed a typo and I use the correct path.
I tried really everything. Wrote it like
[collapsed title=hello]bal bal bla[/collapsed]and so on ... I disabled the rich text editor but it doesn't
change anything. Everything remains the same.
For me this module is really frustrating.
Isn't there another kind to make Text collapsible?
I tried with fieldsets like ...
But not even this works, it just shows me a fieldset
but there is no functionality. Do I need a certain
AJAX of Javascript to make this work?
Thanks
SOezkan
one more thing with
one more thing with collapsible-text-module:
what I see is this text written above my text which
shall be collapsible: Use the arrow to expand or collapse this section
But there is no arrow to use!!
Do I need a certain Javascript or AJAX to be activated?
...
sorry it isn't working for you. module just worked for me without any changes or extra steps. i don't know about javascript and ajax - i don't believe i have anything unusual set-up on my sites for either of those.
in terms of there being any other way to do it: probably there is if you know programming (which i don't).
re: typo. i actually made a typo in my comments above. sorry about that.
the correct begin / end filters are:
[collapse]and[/collapse].And then if you want the content to be collapsed on initial view, the filters are then:
[collapse collapsed]and[/collapse]_
Yes, the module requires javascript be enabled-- just about any kind of interactive bling on a website will require javascript.
I can also confirm that the module does indeed work. Try creating a new input format and disable every filter but the collapse_text one, don't use a wysiwyg or any other kind of editor, make sure js is enabled, and try it again.
Thanks for your replies. In
Thanks for your replies.
In my input format I have Make collapsible text blocks using [collapse] and [/collapse].
and even in my list of allowed HTML-Tags I put the [collapse][/collapse].
When I input these [collapse][/collapse], of course I switch of my rich text before.
At least the module does something - namely:
where my code in the editor (with rich text disabled) is
But I think there are some HTML-Commands or Tags missing respectively.
Pleeese Help!!!!
Thanks so much,
Soezkan
...
My source looks about the same, but has a legend tag, too.
I suspect the problem is either to do with the javascript thing per WorldFallz or to do with the order of your input filters. Or both.
But my input filters contain
But my input filters contain the configuration and say, that collapsible-text module is activated to use.
Javascript is of course activated.
Any other ideas?
...
right, i understand that it is activated in the input format, but i'm wondering if the order of the filters is causing a problem. as noted on the module page, in some cases another filter may be strip out certain required elements required by this module causing it not to work.
so what i'm suggesting is: have you experimented with re-ordering your filters in various ways to see if another sequence works? meaning put it first on the list, put it last, put it in the middle, etc. to see if some other sequence works.
you do this under the 'rearrange' tab at admin > input formats then choose 'configure' for the applicable input format and then 'rearrange' tab. in my case, i have about 9 filters that get applied and they need to be in a certain order or else one module or another fails to work properly.
other than that, i have no other ideas, unfortunately.
Oh my Goodness, I made it
Oh my Goodness, I made it finally!
I never knew about the possibility to rearrange these filters.
I put it at the end as the last filter and now it works.
Hurray hurray hurray !!! Too stupid that computers
frustrate first and than make very happy.
Anayway. Thank you so much for your great help!
All the best,
Soezkan
...
great! glad that worked.
happy to help.
Text is collapsed without attribute "collapsed" within tag
When I use the above code and save my node, and view the node, the text is
already collapsed without clicking on MYTITLE.
I thought this happens only, if it is like this:
Is there something like "not collapsed"?
Thanks for help :)
Soezkan
...
doesn't work that way on my setup.
using your first example, section is shown as not collapsed on my site.
perhaps read thru the module issue queue to see if there are other similar things described.
sounds like there are issues using module with WYSIWYG editors. i don't use one, so can't comment.
I made it the other way round
I made it the other way round and now it works, though it doesn't makes sense
in terms of the naming. Anyway.