Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding accordion to navigation is not possible #18

Open
cliffparnitzky opened this issue May 23, 2019 · 1 comment
Open

Adding accordion to navigation is not possible #18

cliffparnitzky opened this issue May 23, 2019 · 1 comment

Comments

@cliffparnitzky
Copy link
Collaborator

Currently it is not possible to add an accordion to the content navigation.

The reason is that "Wrapper start" / "Single element" has no headline. There is only a field Section headline. In general, it would definitely be very easy to use this field.

BUT: it is only a textfield. There is no possibility to define the headline level. That will result in different problems (start/stop level could not be recognized, where to add the entry in the netsted list of the output).

My current workaround is, to replace the Section headline for accordion "Wrapper start" / "Single element" with the headline field vvia DCA customization. The front end template ce_accordionStart has to be customzied as well.

Maybe this workaround is a good solution. But perhaps the is another idea.

@Defcon0
Copy link

Defcon0 commented Jan 21, 2021

It would also be cool if the tool wouldn't be bound so hard to headlines. Not every section might have an own headline. You could solve this by adding an invisible div with an id set if no headline is present:

<div class="toc-headline" style="display: none !important;"></div>

Would that be an option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants