You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taxonomy Has hierarchy List (one classification) template Index (one classification) template Overview (list of classifications) template Subcategories list template List is an index Show as list of subcategories
``<overview_page_variable_name>`` str List of classifications
216
-
``<overview_page_items_variable_name>`` str List of items **(name, link)**
217
-
``<overview_page_items_variable_name + "_with_postcount">`` strList of items **(name, link, count)**
218
-
``<overview_page_hierarchy_variable_name>`` str? List of hierarchies
219
-
``<overview_page_hierarchy_variable_name + "_with_postcount">`` strList of hierarchies, with added counts
236
+
``<overview_page_items_variable_name>`` list List of items **(name, link)**
237
+
``<overview_page_items_variable_name + "_with_postcount">`` list List of items **(name, link, number of posts)**
238
+
``<overview_page_hierarchy_variable_name>`` list? List of hierarchies **(name, full name, path, link, indent levels, indent to change before, indent to change after)**
239
+
``<overview_page_hierarchy_variable_name + "_with_postcount">`` list? List of hierarchies, with added counts **(name, full name, path, link, indent levels, indent to change before, indent to change after, number of children, number of posts)**
220
240
``has_hierarchy`` bool Value of ``has_hierarchy`` for the taxonomy
The indenting information can be used to render the items as a tree. The values have the following meanings:
274
+
275
+
* ``indent levels`` is a list of pairs ``(current_i, count_i)`` giving the current position (``0``, ..., ``count_i-1``) and maximum (``count_i``) in the hierarchy level ``i``;
276
+
* ``indent to change before`` is the difference of hierarchy levels between the previous and the current item; positive values indicate that the current item is indented further in and can be used to open HTML tags before the item;
277
+
* ``indent to change after`` is the difference of hierarchy levels between the current and the next item; negative values indicate that the current item is indented further in and can be used to close HTML tags after the item.
0 commit comments