Hello, community!
I have an issue with Expand macro and Code block inside:
I have
{expand}
content inside
{code|collapse=true}
{code}
{expand}
When I try to view content under Expand macro:
1. Expand the section
2. Click Expand Code block
3. Expand macro automatically collapses in a half a second
4. Expand the section again
5. Code block is expanded
6. Collapse Code block
7. Expand macro automatically collapses in a half a second again
Is it a bug? Have anybody met that issue? Is there any solution for that?
Our wiki is on Server 6.15
Thanks
Why the nesting of expand functions? Can't you just have a standard code block inside the expand macro?
My suspicion is that you are seeing a conflict between expand events, that toggling one, causes the other to toggle. It would take some work to debug, so it might be easier to just restructure the content. For example, if you need to have the code separately expandable, then have then all at the same level:
Well, actually the content is not such simple. There are several expandable sections, each of them have several steps to take with code blocks as examples. And they are just a small part of the whole page content. If the code macro is not collapsed initially, the guide looks too long and takes extra efforts to scroll it all down. And the content inside expand macro is actual for different users, they don't need to see the whole content of whole sections.
Probably I need to think of another way to structure my content (tabs maybe). The one with expand and code block macros was the easiest.
Could you tell me what should be done to debug it? Still hope to use it in future. Or maybe as our wiki is on Server, I better contact with our support group?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume it is controlled via JavaScript. So maybe if you have the browser console open, you can figure out which script is operating.
The other option is to create your own code macro, basically a user macro that includes your JavaScript and wraps a standard code macro so that the two operations are separate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.