I am using collapse text as well as Textile. If I place collapse text below Textile in the input filter then collapse text will create a fieldset but will not collapse by default and title="" will not work. If I put collapse text above Textile then collapse text works correct but Textile does not work at all.

Comments

pukku’s picture

Assigned: Unassigned » pukku

Hi! Can you give me some examples of what you mean? My guess is that Textile is stripping information from the collapse_text tags, which is why none of the options work if Textile is above it. I know that Markdown by default ignores already extent block tags and everything inside them, so it's possible that a similar feature of Textile is why it doesn't work if you put Textile below...

pukku’s picture

Assigned: pukku » Unassigned
dydave’s picture

Issue summary: View changes
Status: Active » Fixed

No more feedback on this issue for more than two years.

I would assume a solution should have already been found by ticket's author who posted more than three years ago.

Additionally ticket's author didn't provide any additional information, even though it had been explicitly requested by @pukku in #1. Therefore, no follow-up was ever given to this issue.

We're left to guessing whether the possible issue mentioned in #1 could have been the problem:

My guess is that Textile is stripping information from the collapse_text tags, which is why none of the options work if Textile is above it. I know that Markdown by default ignores already extent block tags and everything inside them, so it's possible that a similar feature of Textile is why it doesn't work if you put Textile below...

In other words, we could guess that the potential solution would have been to change the order of the filters to have the Textile filter after the Collapse Text filter.

Although we will never know for sure whether this was the problem, since user never reported back, I allowed myself to mark this issue as Fixed for now, but feel free to re-open it, or post a new ticket, at any time if you have any further objections with suggested solution (we would surely be happy to hear your feedback).

Please let us know if you would have any further comments, feedback, questions, issues, objections, suggestions or concerns on this comment or ticket in general, we would be glad to provide more information or explain in more details.

Many thanks to everyone for your great help, reviews, testing, reporting and participation for the improvement of this module.
Cheers!

silurius’s picture

Version: 6.x-2.7 » 7.x-2.4
Status: Fixed » Active

I do not have Textile installed, and I cannot seem to make collapsible text be collapsed by default, even when the filter is last to fire in my text format. But the title, and everything else, works fine. What additional info should I provide?

dydave’s picture

Hi @silurius,

Thanks for following-up on this ticket.
Actually, I would guess the problem you encountered is most likely a bit different from the one that was discussed in this ticket.

But anyway, while we're at it, we might as well try to fix/answer your problem here.

What additional info should I provide?

Could you please copy/paste the code that you have in your node?
Please copy/paste here the contents of the field that should display with Collapse Text filter.
It's the piece that should contain something like [collapse ....] ... some content .... [/collapse].

Otherwise, I wanted to ask if you already tried changing the Collapse Text markup from:
[collapse ....] ... some content .... [/collapse]
To
[collapsed ....] ... some content .... [/collapsed]

Watch carefully the d that was added at the end of the word collapse: collapsed.
This should be the correct syntax for displaying collapsible text collapsed by default.

Feel free to let me know if you would have any additional questions, concerns or problems, I would surely be glad to provide more information.
Thanks in advance for your testing/reporting, comments and feedback.

silurius’s picture

In my node field, I have: [collapsed title="Some title text"][view:myviewname=myviewdisplay][/collapsed]. I am using the Insert view module.

I was actually omitting the "d" at the end of the close bracket (it was [/collapse]) but adding the "d" and clearing caches did not resolve the issue. Same result when I drag Insert view filter down below the Collapsible text blocks filter.

However, testing again with just simple text and no inserted view display, it collapses by default as desired. So maybe Collapse Text is just partially incompatible with Views or Insert view. I should have tested that in the first place before posting here.

silurius’s picture

Title: Text not collapsing by default » Collapsed text with embedded view inside won't collapse by default.
denes.szabo’s picture

StatusFileSize
new120.24 KB

Actually, the collapsed part does not work to me, but I am not using view display.

My text text is:

[collapse collapsed="collapsed" title="First collapsible item" ]
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Donec sed odio dui.
[/collapse]

[collapsed title=Second something collapsible item]
Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Sed posuere consectetur est at lobortis.
[/collapsed]

[collapse title="Third and collapsible item" collapsed]
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Donec sed odio dui.
[/collapse]

[collapsed ....] ... some content .... [/collapsed]

(latest copied from a comment above).
The result is in the attached shot. Seems, the text processed well, but not collapsed. Somehow, the display:none is missing from the fieldset-wrapper div.

I corrected my output in CSS (compass code):

.collapse-text-fieldset {
  &.collapsed {
    .fieldset-wrapper {
      display: none;
    }
  }
}

With this fix, It seems work.

I had no time to dig deeper now, sry. I hope, I had time soon.

dydave’s picture

Status: Active » Closed (outdated)

Drupal 7 is not supported anymore, therefore this issue is unlikely to go any further.

Additionally: No activity or reply for more than 10 years.

If this issue is still valid for more recent versions of the module and Drupal core, please create a new ticket with the appropriate version.

Marking issue as Closed (outdated), for now.

Thanks everyone for your interest in the Collapse Text module and contributions! 😊

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.