As i saw this module totaly destroys the seo aspect of the content. It destroys the header tags. For example if i set H2 tag for the content this module will remove it. I hope i am wrong.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | collapse_text-markup-conserved-in-collapsible-fieldsets-1806368-1.jpg | 118.81 KB | dydave |
Comments
Comment #1
pjcdawkins commented+1 it does remove heading tags, making them into <fieldset> <legend> elements.
Comment #1.0
pjcdawkins commentedtext fix
Comment #2
dydave commentedHi guys,
Thanks a lot for posting this issue and I certainly wish it could have been answered or at least followed-up earlier.
Anyway.... hopefully we could take back from where it was left off.
I'm afraid I don't really understand what you guys meant by:
and
From what I have tested, non of the HTML markup inside the collapsible markup, i.e.
[collapse ...]... inside markup ... [/collapse], would be affected in any way.If a collapsible fieldset contains any HTML markup, whether h1, h2, h3, etc... none of it should be altered when displayed.
For example, see a quick screenshot below, with several types of tags in a collapsible fieldset (Theme: Bartik):

Therefore, could you please be as specific as possible about your request and what could be wrong with the way the Collapse Text module currently handles collapsible fieldsets' markup?
Any of the following would be greatly appreciated:
This surely looked like a rather annoying issue since its priority was set to Major, so I would be glad to further discuss and help finding out an appropriate way the problem could be resolved.
Feel free to let me know if you would have any further comments, feedback, questions, issues, objections, suggestions or concerns on this comment or bug report in general, I would be glad to provide more information or explain in more details.
Thanks in advance to everyone for your reviews, testing, comments and feedbacks.
Cheers!
Comment #3
mibfire commentedI have just tested on simpletest and it is still not working.
Try this:
H2 will be removed.
Comment #4
dydave commentedHi @mibfire,
Thanks a lot for your prompt follow-up on this issue and I'm glad to see we might be able to bring back some life and discussion to this issue.
Thank you for providing an example of what you meant could potentially be an issue.
Now, I would be glad to hear any potential ideas of how this could be resolved and what could be possible solutions.
Please allow me to get back to the example you gave:
Then, I would assume you would like the H2 tag to be conserved (if I am not mistaken).
But could you please describe in detail the HTML structure that you would expect to be generated?
Right now collapsible text is contained by
<fieldset>markup/tags, how would you see exactly this HTML structure evolve?Currently the HTML markup generated is:
Would I be correct to assume you would like the following markup to be generated?
If we were to follow this logic, what would happen with the following piece of code:
In particular, what would happen with the H3 tag?
This issue actually sounds like a substantial Feature request and would probably require many code changes, discussions as well as testing.
In order to move this issue forward, we would need to clearly identify on both sides, the parameters and expected result:
collapse_text syntax+HTML markup => expected result for the generated HTML structure
Any additional help, comments, ideas, feedback, questions, issues, objections, suggestions or concerns would definitely be greatly appreciated.
Thanks in advance to everyone for your comments and feedbacks.
Cheers!
Comment #5
mibfire commentedHi @DYdave
This issue will be harder than i thought.
If we wanna do a perfect html5 friendly solution then we have to rewrite the whole template. The fieldset elem is not appropriate either. We should use the section elem. The section elem needs to start with a header elem. If there is no header tag in the text then, the header could be the title tag of collapse, or the first setence of the text and in this case the default header tag should be given in the collapse elem like title.
Comment #6
dydave commentedDrupal 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! 😊