[h2]What the module does[/h2]

“Custom sections” lets you add a section the package does not have: vacancies, projects, reviews, venues, a team. You define the fields yourself, and the section gets its own table in the database, pages in the panel and an address on the site. No programmer needed.

[h2]How to add a section[/h2]

[list]
[*]Press “Add section” and enter the name (singular and plural); on the site the section lives at /r/address, and the machine name becomes the table name and cannot be changed later.
[*]Under “Ready-made structure” take a starter (Projects, Vacancies, Reviews, Team) or begin “From scratch”. After creation the fields are ordinary: you can change and delete them.
[*]Turn off “Show on the site” if the section is only for you.
[*]If the section has a “Large text field”, it cannot be added later: decide at the start.
[/list]

A section has three tabs: “Entries”, “Fields” and “Section” (name, menu, look on the site).

[h2]Fields[/h2]

A field is a separate column in the section’s table. Kinds: line and long text, numbers, yes/no, date, one choice from a list and several choices, link, email, colour, stars, picture, gallery, file, audio, video, markup, a table with rows and columns. A list can point to an entry of another (or the same) section.

For each field you can tick: “Show in the list”, “Show on the card”, “Show to the visitor”, “required” and “in the filter” (the filter works for lists, yes/no and dates).

[b]Be careful with deleting.[/b] Adding a field is safe; removing one loses what is stored in it. Before deleting, the engine saves a copy of the values itself (JSON and CSV) and asks you to type the field’s machine name. Renaming leaves the data alone, but if your own templates use the old name, fix them too.

[h2]Entries[/h2]

An entry has a status: “Published”, a draft or “Scheduled”. Several entries can be selected and published, moved to drafts or to the trash at once. The list downloads as CSV. If the site has several languages, an entry has translations, marked “translation”.

[b]Free edition limit.[/b] The number of entries is limited by the licence; at the limit a new entry or a copy of an entry is not created and the panel says so. A licence key lifts the limit.

[h2]How the section looks on the site[/h2]

Entries can be shown as cards, a table or a list. For a table, the columns are chosen under the section’s fields with “Show in the list”. Turn on “Search and filters on the site” so the visitor can search the text and the ticked fields. The section can appear as its own item in the left menu (or in a group with the same name, such as “Cinema”) and as a block on the home page (1 to 12 latest entries). Under an entry’s text you can show a form from “Forms”: a job application, a booking.

[h2]Collections, persons and blocks[/h2]

[list]
[*]“Collections” are lists of entries from any sections, put together by hand (“Best of 2024”). A collection has a cover, an address and an order you set.
[*]“Persons” are people linked to entries (actors, directors, authors): a page for the person and their part in entries.
[*]“How to show on the site” gives blocks for the home page: a shelf of entries, one entry large, a list with icons.
[/list]

[h2]Copies and moving[/h2]

A section goes together with its table and all its entries, but before deleting, the engine saves a copy of the data (JSON and CSV) on the server. The list of such copies and restoring from them are on the section copies page. Sections and entries are also part of the general export of the site to another site.

[h2]For the template author[/h2]

The module has starter templates on tags (list, entry, collections, persons): copy them into a theme and rework them.

[h2]Where next[/h2]

[list]
[*][url=admin:content]Custom sections[/url]
[*][url=admin:modules]System → Modules[/url] — turn the module off or on
[/list]
