Inserting objects
Table of contents
Creates an automatic table of contents for the page based on its headings.
- Using the block
-
{{toc page="mypage" from="h2" to="h6" numerate title="My page"}}
All
{{toc}}
parameters are optional. - Block parameters
-
- page
-
Address of the page to use headings from for forming the table of contents.
- from
-
The highest level of headings to include in the table of contents.
- to
-
The lowest level of headings to include in the table of contents.
- numerate
-
If enabled, all headings in the table of contents will be numbered.
- title
-
Title of the table of contents.
Dynamic table
The block contains a dynamic table.
- Using the block
-
{{grid page="tableAddress"}}
By default, this table can be edited directly on the page where it's inserted. All changes will be automatically applied to the main table and all its occurrences on other pages.
- Block parameters
-
- page
-
Address of the table you want to add to the page.
- width
-
Optional parameter. Width of the table as a percentage of the page width:
{{grid page="tableAddress" width="60%"}}
- readonly
-
Optional parameter. If specified, the table is inserted in “read only” mode.
- num
-
Optional parameter. If specified, table line numbers are not displayed.
- sort
-
Optional parameter. If specified, the sorting parameters for the source table are ignored.
- filter
-
Optional parameter. Sets a filter for displaying table rows:
{{grid page="tableAddress" filter="[id1]=value1, [id2]=value2"}}
With this filter, only the rows that match both conditions will be displayed:
-
The
[id1]
column hasvalue1
. -
The
[id2]
column hasvalue2
.
To find out the column ID, go to table editing mode (Edit) and click ≡ in the column header.
How to specify values for comparisonDepending on the column data type, the values to be compared may be specified in different ways:
Data type Example Description Text 'Bike'
Text in single quotes Number -7
A number with no quotes Checkbox true
Different formats are supported.
For boolean 0:
no, off, false, unchecked
.For boolean 1:
yes, on, true, checked, done
.Date 2012-12-12 Date formatted as YEAR-MONTH-DAY List 'Bike'
Text in single quotes Multi-select list 'Bike'
Text in single quotes Data type Example Description Text 'Bike'
Text in single quotes Number -7
A number with no quotes Checkbox true
Different formats are supported.
For boolean 0:
no, off, false, unchecked
.For boolean 1:
yes, on, true, checked, done
.Date 2012-12-12 Date formatted as YEAR-MONTH-DAY List 'Bike'
Text in single quotes Multi-select list 'Bike'
Text in single quotes Supported comparison operationsOperation Notation Example Equals =
,is
[13] is 'Bike'
Not equal !=
,is not
[13] is not 'Bike'
Comparison <
,>
,<=
,>=
[13] > 50
Contains substring ~
[13] ~ 'Bi'
Does not contain substring !~
[13] !~ 'Bi'
From ... to ... (works with numbers and dates) between ... and ...
[13] between 100 and 1000
Equal to one of... in (...)
[13] in ('Bike', 'motorcycle', 'helicopter')
Not equal to any of... not in (...)
[13] not in ('submarine', 'spaceship')
Operation Notation Example Equals =
,is
[13] is 'Bike'
Not equal !=
,is not
[13] is not 'Bike'
Comparison <
,>
,<=
,>=
[13] > 50
Contains substring ~
[13] ~ 'Bi'
Does not contain substring !~
[13] !~ 'Bi'
From ... to ... (works with numbers and dates) between ... and ...
[13] between 100 and 1000
Equal to one of... in (...)
[13] in ('Bike', 'motorcycle', 'helicopter')
Not equal to any of... not in (...)
[13] not in ('submarine', 'spaceship')
-
- columns
-
Optional parameter. Contains a list of columns to display in the following format:
{{grid page="linkToTheTable" columns="id1, id2, id3"}}
This dynamic block contains only the columns with the following identifiers:
id1, id2, id3
.To find out the column ID, go to table editing mode (Edit) and click ≡ in the column header.
Anchor
The block contains an anchor, an identifier that can be used for navigating directly to this part of the page.
- Using the block
-
{{Anchor href="MyAnchor"}}
- Block parameters
-
- href
-
Contains the anchor name.
- title
-
Optional parameter. Contains the anchor title.
- text
-
Optional parameter. Contains the anchor text.
To create a link to an anchor, append #
followed by the anchor to the page address:
((http://pageAddress#MyAnchor Link text))