put collapsible text link in the filter, not in header tags
rivena - May 17, 2008 - 07:37
| Project: | Collapsible Text |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | pukku |
| Status: | closed |
Description
First, thanks for this easy to use module! Maybe I've been using Drupal too much, but I'm always impressed when something works the way you expected and wanted it to work the first time you use it. That says something.
I was wondering if the text that goes with the collapsible link could be passed through the filter instead of in header tags within the text itself. as in [collapsible text=read more!] instead of [collapsible]<h1>read more!</h1>. It's not a huge deal for me, but I think it would allow more flexibility/usability/all around goodness.
Thanks for your time.
Anisa.

#1
The header does't show up. I get a link called "Interpretation" all the time even when I do this:
[collapse]<h1>LINK SHOULD BE CALLED THIS</h1> TEXT HERE [/collapse]Bug? Anyone else get this?
#2
#3
Does anyone know if it's possible to center the title?
#4
I think you can use CSS to do that... just start by viewing the HTML and seeing which class or id to target.
#5
Hi! The original issue is a semi-duplicate of #233877: Attached is modified version including nesting and custom title support. spiffyd, if you're still having problems, please file a separate bug report so that tracking of your problem can be done properly.
#6
I've redecided, and I'm going to fix this issue separately from #233877: Attached is modified version including nesting and custom title support.
#7
Patch attached.
#8
committed.
#9
Is there any way to only make the
title text only show up as the link and not in the content header?
#10
Nevermind, I figured it out... CSS is the solution.
#11
Automatically closed -- issue fixed for two weeks with no activity.
#12
I'm using 1.1 and neither this:[collapsible text=read more!] nor this: [collapsible]
read more!
works. What's the correct way to do this?
#13
see #1... you're doing it all wrong.
to start out collapsed go
[collapse collapsed]<h1>LINK SHOULD BE CALLED THIS</h1> TEXT HERE [/collapse]#14
Am I missing something? That doesn't work for me.
It just says: Use the arrow to expand or collapse this section.
and I see the this text: LINK SHOULD BE CALLED THIS TEXT HERE
#15
@spiffyd, the correct way is like this, after checking out the module code:
[collapse collapsed title=LINK SHOULD BE CALLED THIS]TEXT HERE [/collapse]
#16
#17
Hmm... @Miraploy, that's interesting...
You are correct.
However, I have been able to get it to work without the TITLE attribute by using H1 content as the title and using CSS to hide the H1. Now I no longer have to do this!
#18
[collapse collapsed title=LINK SHOULD BE CALLED THIS]TEXT HERE [/collapse]should mention in the description and readme too.I tried this before
[collapse]<h1>LINK SHOULD BE CALLED THIS</h1> TEXT HERE [/collapse]and that doesn't work anymore.#19
Automatically closed -- issue fixed for 2 weeks with no activity.