Accordion menu inside Quire page #692
-
Hi! I am working on a new project and was wondering if anyone can help me make accordion menus work! I tried adding the js to the _assets> javascript >/*custom.js page, but it won't read it, and if I add it directly under the content it breaks the preview! I am not a developer so this is were I got the instructions: https://www.w3schools.com/howto/howto_js_accordion.asp Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@ncamachoh, I'm afraid we haven't documented adding custom JavaScript to projects yet and it can be a little tricky. When you said you tried adding it directly under the content, did you surround it in Also, depending on your timing, we're actually just starting on building accordion page sections ourselves and they will be a part of core Quire. So available for everyone. We haven't established a definitive deadline for getting them done, but I would guess within the next 3–4 months. |
Beta Was this translation helpful? Give feedback.
-
@ncamachoh I am not sure what type of accordions you are wanting on your page but we have added collapsible items in the content on our pages. This can be accomplished in markdown files using details and summary html tags that are styled with css. Here is an example https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab. |
Beta Was this translation helpful? Give feedback.
-
Good news @ncamachoh, we have officially incorporated accordion sections into Quire. We now have an accordion shortcode that generates detail/summary semantic HTML elements, similar to what @rrolonNelson and @cbutcosk mention above. You can find documentation here: https://quire.getty.edu/docs-v1/accordions/. To incorporate this in your project, follow the "Update An Existing Project" instructions in our docs: https://quire.getty.edu/docs-v1/install-uninstall/#update-an-existing-project. |
Beta Was this translation helpful? Give feedback.
Good news @ncamachoh, we have officially incorporated accordion sections into Quire. We now have an accordion shortcode that generates detail/summary semantic HTML elements, similar to what @rrolonNelson and @cbutcosk mention above. You can find documentation here: https://quire.getty.edu/docs-v1/accordions/. To incorporate this in your project, follow the "Update An Existing Project" instructions in our docs: https://quire.getty.edu/docs-v1/install-uninstall/#update-an-existing-project.