Closed (fixed)
Project:
TOC filter
Version:
8.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2016 at 04:59 UTC
Updated:
17 Oct 2022 at 09:34 UTC
Jump to comment: Most recent
Comments
Comment #2
xurizaemonAgreed, this doesn't seem well documented. Right now, I think the supported syntax is:
Refs:
Comment #4
xurizaemonComment #5
sandeshyadav commented@xurizaemon,
The type attribute in
[toc type="simple" block="true"]
Does not work. I can confirm.
What works
block
block="true"
block="false"
title="My Title"
What does not work:
type="full"
type="default"
type="ul"
type="ol" etc.
Has anyone else figured out how to customize the type of the toc for each node?
Comment #6
xurizaemonIt appears the ToC types are sourced from configuration, so this may vary per site. It's also possible that ToC types aren't working in some environments, but that's outside the scope of this "Document how they work" ticket (sorry).
Here are the ToC types as they are initiated at enable of ToC API module: https://git.drupalcode.org/project/toc_api/-/tree/8.x-1.x/config/install
Here is the plugin filter configuration: https://git.drupalcode.org/project/toc_filter/-/blob/e117136b4da1f17116e...
Here is the class used just below the above link to determine the available list of ToC Types for selection in the config screen: https://git.drupalcode.org/project/toc_api/-/blob/8.x-1.x/src/Entity/Toc...
From this it appears that a site can identify the available options for
type=by viewing/admin/structure/tocentities.If those values don't work for your site, that may be a candidate for a separate issue, unless you believe it might be resolved via documentation alone.
Hope that helps! Happy to improve on this docs MR if people have feedback about the proposed changes.
Comment #8
vladimirausThanks for your contribution.
Comment #10
vladimiraus