Closed (fixed)
Project:
Collapse Text
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 May 2008 at 07:37 UTC
Updated:
10 Feb 2009 at 12:40 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | collapse_text_opt_title_patch.txt | 3.61 KB | pukku |
Comments
Comment #1
spiffyd commentedThe 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?
Comment #2
iboekoe commentedComment #3
AndrewLeon commentedDoes anyone know if it's possible to center the title?
Comment #4
spiffyd commentedI think you can use CSS to do that... just start by viewing the HTML and seeing which class or id to target.
Comment #5
pukku commentedHi! 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.
Comment #6
pukku commentedI've redecided, and I'm going to fix this issue separately from #233877: Attached is modified version including nesting and custom title support.
Comment #7
pukku commentedPatch attached.
Comment #8
pukku commentedcommitted.
Comment #9
spiffyd commentedIs there any way to only make the
title text only show up as the link and not in the content header?
Comment #10
spiffyd commentedNevermind, I figured it out... CSS is the solution.
Comment #12
Flying Drupalist commentedI'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?
Comment #13
spiffyd commentedsee #1... you're doing it all wrong.
to start out collapsed go
[collapse collapsed]<h1>LINK SHOULD BE CALLED THIS</h1> TEXT HERE [/collapse]Comment #14
Flying Drupalist commentedAm 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
Comment #15
Flying Drupalist commented@spiffyd, the correct way is like this, after checking out the module code:
[collapse collapsed title=LINK SHOULD BE CALLED THIS]TEXT HERE [/collapse]
Comment #16
Flying Drupalist commentedComment #17
spiffyd commentedHmm... @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!
Comment #18
k3vin commented[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.