Is there a way to use [collapse] within a php field I've added? I've tried every type of "escaping" I can think of for those square brackets - but to no avail. I either get a php error or incorrect text.
I can't put the [collapse] outside the php code because it's the code determining "if" the collapsible text should appear in the first place.
Comments
Comment #1
merlinofchaos commentedWhat is
[collapse]? I have never heard of this. It seems unlikely to be something that would work in Views.Comment #2
khosman commentedIt's the "tag" (for lack of a better word) that surrounds text that allows viewers to open and close blocks of text. Within views, you'll see it listed in a "custom markup text"-type display under all three of the input format choices.
For instance, under "PHP Code," you'll find: "Use [collapse] and [/collapse] to create collapsible text blocks. [collapse collapsed] or [collapsed] will start with the block closed."
Comment #3
khosman commentedWell, woops - It's been so long since I put together some of these modules, I'd forgotten how they split up their individual tasks.... I had assumed that Collapse Text was part of Views - when in fact it's a separate module altogether. Thinking over merlinofchaos' post caused me to do a bit of sleuthing and of course now I find that this is more a concern for the Collapse Text module.