Some things belong to the whole site, not to one page: the logo, the phone and WhatsApp numbers, the address, the social links, the footer text, the menu. They change over time, and when they are written in the template (the theme file that draws the page) every change needs you. Velk keeps them in options pages: groups of fields declared in site.json under options, each with its own screen in the admin. There is no address, no list and no publishing — only the fields and a save button.
Ask the AI
Create the site's options: - Identity: the logo - Contact: phone, WhatsApp, e-mail, address and opening hours - Social: a list of networks, each with the network's name and the link - Footer: a short sentence about the firm and the copyright text Use them in the header and the footer instead of the texts written in the template. Run schema:validate at the end.
Grouping by subject gives the client short screens. Social networks as a list let the client add a new one without calling anyone.
The menu
Velk has no separate menu manager: the menu is an options page too. It is a list (a repeater) where each row has a label and a destination — a link field, which takes an internal address, an external one or an e-mail, with “open in new tab” in the same box. In the template the menu is a loop over that list, and the client reorders it by dragging the rows.
For the menu
Create a “Menu” options page with the header links: a list of items, each with a label and a destination (internal page or external link, with the new-tab option). Collapsed rows should show the label. Replace the menu written in the header with this list.
Asking for the label on collapsed rows (title_field) keeps a menu of eight items readable in the admin, instead of ITEM 01, ITEM 02.
In the admin
-
Open the group
Each options page is a link in the Options block of the sidebar, with the label you gave it.
-
Change the fields
The screen holds only fields: no address, no draft, no publish date. Lists have rows to add, drag and remove.
-
Save
Save options applies the change everywhere the group shows: header, footer and every page that reads it.
Options in several languages
On a multilingual site each options page has one tab per language, like content, and a field left blank in a language tab shows the default language's value. Since v3.9.1 this holds however the theme reads the group: before, a theme that read the whole group at once printed the default language on every page. On a multilingual site built before v3.9.1, look at the translated pages after updating.
A list filled in a language tab replaces the default list as a whole. To translate the menu, fill in every row in that tab — labels and the addresses of that language — or leave the list empty to show the default menu.
Questions
Can the AI change the phone number on the live site?
Options are edited in the admin. The content commands the AI uses on a live site reach pages and content items, not options — and the screen takes a few seconds.
Can a menu have sub-items?
Yes: each row of the menu can carry its own list of sub-items. Say so in the prompt, along with how the submenu should behave on a phone.
What if a page's address changes?
A menu row keeps the address as it was typed. When a page's address changes in the admin, update its row in the menu too.