Childtabs Macro

How to use this macro:

Define the parent page in this macro. The macro will automatically generate tabs displaying the children's content.


Childtabs macro overlay

 

How to use the Childtabs macro

Example: You want to display the children of the page "Childtabs Example" as tabs on that page.


Here's how to proceed:

  1. Edit the page "Childtabs Example" and add the macro "Childtabs".

  2. A preview appears, based on the children of the current page. To change the macro's setting, select the pen icon.

  3. Leave "Root page" blank for the current page. Otherwise, type and select a different root (=parent) page.

  4. Play around with the other parameters (see below). Check the preview to see if everything looks as expected.

  5. When you are happy with the result, save by hitting “Insert” and publish the page.

  6. The page will present the various child pages as tabs. The focus is always on the first tab, meaning that the content of "Page Child 1" will be displayed without anyone having to click on it.



Options in the Childtabs macro editor

  • To display the tabs vertically, activate the toggle "Display the tabs vertically". By default, tabs are oriented horizontally.

  • To reverse the tab order, activate the toggle “Reverse the tab sort order”.
    The default sort order is the order of the pages in the page tree. You can use drag and drop in the page tree to rearrange pages.

  • To change the tabs' height, set a new value (in pixels) in the "Tab content height" field. The default height is 750 pixels. You may have to change the height manually for long content.

  • To truncate tab names, enter a number of characters that will be removed (starting from the beginning of the tab names). This makes sense in long page titles to save space. By default, the entire title appears.

 

Change the tab design

As of autumn 2021, it is possible to create your own tab designs . We have created a separate page with all the details.

Here’s how to change the tab design within the Childtabs macro: