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

Create a table of contents block #18556

Closed
Nemzag opened this issue Nov 16, 2019 · 3 comments
Closed

Create a table of contents block #18556

Nemzag opened this issue Nov 16, 2019 · 3 comments
Labels
Needs Design Feedback Needs general design feedback. [Package] Blocks /packages/blocks [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement. [Type] Question Questions about the design or development of the editor.

Comments

@Nemzag
Copy link

Nemzag commented Nov 16, 2019

Ħêllo,
in my Web‑Dev projects I like to have a table content in a page.
I use pro that TocBot.
I would like to have in GutenBorg an identical system, « T.O.C. Block »
Please do it…

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Not applicable.

Describe alternatives you've considered
In TocBot we need to use ID pro links in table of content to work,
so it would be great if gutenberg added automatically id="",
to achieve this.
and in titles Title_n°? : to access table of content block in start of the page, just under in <main>.

Exemple

<main id="main" class="ui container">

	<article id="article">

		<section id="#section-table-of-contents">
			<fieldset>
				<legend><h2 id="title-h2-table-of-contents"><a href="?#title-h2-table-of-contents">Table de's matière's :</a>
					</h2></legend>

				<div id="js-toc" class="js-toc"></div>
			</fieldset>
		</section>
@Nemzag Nemzag changed the title « Table of Contents Block » « Table of Contents Block », alway on top of <main> Nov 16, 2019
@Nemzag Nemzag changed the title « Table of Contents Block », alway on top of <main> « Table of Contents Block », always on top of <main> Nov 16, 2019
@Nemzag Nemzag changed the title « Table of Contents Block », always on top of <main> « Table of Contents Block », always on top of <main>. Nov 16, 2019
@draganescu draganescu added [Package] Blocks /packages/blocks [Type] Enhancement A suggestion for improvement. [Type] Question Questions about the design or development of the editor. Needs Design Feedback Needs general design feedback. labels Nov 19, 2019
@draganescu
Copy link
Contributor

Should core include a ToC block?

@Nemzag
Copy link
Author

Nemzag commented Nov 19, 2019

Da, of course Draganescu.

@karmatosed karmatosed changed the title « Table of Contents Block », always on top of <main>. Create a table of contents block Dec 18, 2019
@talldan
Copy link
Contributor

talldan commented Jan 14, 2020

Duplicate of #11047

@talldan talldan marked this as a duplicate of #11047 Jan 14, 2020
@talldan talldan closed this as completed Jan 14, 2020
@talldan talldan added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback. [Package] Blocks /packages/blocks [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement. [Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

3 participants