Choices, lists and code

Besides text, links and images, a component dialog has three more kinds of field: a setting picked from a list, a list of links, and code.

Choices

When a setting can only take a few values, the dialog offers them in a menu instead of a box to type in. Settings of how a component works rather than what it says sit in the Options tab.

The Options tab of a List of pages dialog: Order set to Newest first, an empty How many box, Only pages with this tag set to Any tag, and Only items of this content model set to Pages, not items

Number

Part

What it does

1

Order

A choice of the component itself: here by address, by title or newest first.

2

How many

A number typed in. Empty, the list shows them all.

3

Only pages with this tag

A choice from the site: the tags it has now. A tag added in the console appears here.

4

Only items of this content model

Also from the site: its content models, or plain pages.

The first entry of each menu says what happens when nothing is chosen, such as Any tag or Default (by address). A value the menu no longer has, such as a tag since removed, stays chosen, so nothing changes until you pick another.

Other choices work the same way: the network of a Share button, the depth and order of a Navigation menu, or the folder a List of pages lists, picked from the folders of the site.

Lists

A list field holds several links, one a line, such as the pages of a menu chosen by hand.

The Navigation dialog in the header fragment: the Items box lists Services, About us and Questions as lines of the form [text](address), with two hints under it

Number

Part

What it does

1

Items

One item a line: the text in brackets, then where it goes in parentheses, such as [About us](/en/about/). A page of the site by its address, or a web address.

2

Hints

How to write an item, and what the component does with them: a menu uses them only with the manual order.

As in a link field, a page written by its address is kept as that page, so the item still leads to it after it moves.

Code

is a box in a fixed-width font. What is typed is kept exactly: every line, space and mark, with no styles. The published page shows it as written, with a button to copy it.