File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 3
3
single: Plugins
4
4
5
5
############################
6
- Standard Component plugins
6
+ Standard component plugins
7
7
############################
8
8
9
9
``djangocms-frontend `` adds a set of plugins to Django-CMS to allow for
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ Contents
80
80
:maxdepth: 3
81
81
82
82
getting_started
83
- custom_components
84
83
grid
85
84
components
85
+ custom_components
86
86
plugins/toc
87
87
how-to/index
88
88
reference
Original file line number Diff line number Diff line change @@ -89,30 +89,38 @@ To create a table of contents:
89
89
Positioning at Top of Page
90
90
==========================
91
91
92
+ Table of contents at the top Example
93
+ ------------------------------------
94
+
92
95
Since the TOC must be placed after headings to collect them, use grid layouts to display it at the top:
93
96
97
+ 1. Create a container
98
+ 2. Add a row with two columns
99
+ 3. In the first (bottom) column: Add your content with Heading plugins
100
+ 4. In the second (top) column: Add the TOC plugin
101
+ 5. Set the column width and order: Both columns should cover full width (typically 12/12),
102
+ the second columns should be shown before (i.e., at the top) the first (then at the bottom)
103
+
94
104
Two Column Layout Example
95
105
-------------------------
96
106
97
107
1. Create a container
98
108
2. Add a row with two columns
99
- 3. In the first (left) column:
100
- - Add the TOC plugin
101
- 4. In the second (right) column:
102
- - Add your content with Heading plugins
109
+ 3. In the first (left) column: Add your content with Heading plugins
110
+ 4. In the second (right) column: Add the TOC plugin
103
111
5. Set column widths appropriately (e.g., 3/9 split)
104
112
105
113
Example Structure::
106
114
107
115
Container
108
116
└── Row
109
- ├── Column (col-3 )
110
- │ └ ── TOC Plugin
111
- └ ── Column (col-9)
112
- ├── Heading Plugin
113
- ├ ── Content ...
114
- ├ ── Heading Plugin
115
- └── More content...
117
+ ├── Column (col-9 )
118
+ │ ├ ── Heading Plugin
119
+ │ ├ ── Content...
120
+ │ ├── Heading Plugin
121
+ │ └ ── More content ...
122
+ └ ── Column (col-3)
123
+ └── TOC Plugin
116
124
117
125
This creates a sidebar layout with the TOC always visible while scrolling through content.
118
126
You can’t perform that action at this time.
0 commit comments