Site-Tutorial
Klickaktionen
Au tap : ViewPreViewState.setAction → ActionContentP.m.setAction parcourt view.uuid_action[] dans l’ordre. uuid_action = liste d’uuids d’ActionContent, pas le type d’action. data vide → view.title.getText().
ActionContent JSON
| Clé | Type | Rôle |
|---|---|---|
uuid | v7 | ce que le view référence |
name | string | label auteur |
enable | 0|1 | |
type | uuid catalogue | |
data | string | payload (uuid route, URL, tel, email…) |
list | [] | legacy, toJson émet [] |
{
"id": 0,
"odr": 1,
"uuid": "<action>",
"name": "go-contact",
"enable": 1,
"type": "018ef76b-29d7-7892-b912-8dfa0c23f5f7",
"data": "<uuid RouteContent contact>",
"list": []
}
"uuid_action": ["<action>"]
Catalogue — ce qui marche live (setAction)
| Getter | UUID | data | Effet |
|---|---|---|---|
action_link | 018ef76b-29d7-7892-b912-8dfa0c23f5f7 | uuid RouteContent ou URL | goSitePage(getPathAllByUUID) sinon urlLaunchNew |
action_copy | 018ef3f8-bcaf-7d86-9db3-1ef7969ad55d | texte | clipboard |
action_phone | 018ef3f8-fb65-7052-8caa-bf2a2e8f9c8e | numéro | uriLaunchTel |
action_email | 018ef3f9-145d-7dcc-be68-e05598b54b03 | uriLaunchMail | |
action_maps_coordinate | 018ef3f9-33a6-7944-90f0-07e51a8e292a | JSON [lat,lng] | maps |
action_open_back | 0191cd30-da0c-7870-aeec-4025e9ffb471 | — | goLastAll |
action_open_product_info | 0190fe8e-e841-7564-9100-bbd5b02cd9b8 | uuid produit | page produit |
action_open_signup | 01919aae-0824-708d-86a9-af25e113db31 | — | goSignUp |
action_video_time | 019e970c-e968-70b7-afb9-288292df0595 | — | track query (ex. t=1:30) |
Corps vide live — ne pas utiliser pour naviguer
| Getter | UUID | État |
|---|---|---|
action_open_view | 018ef3f9-5f4a-768d-9969-88045e37ac9d | no-op |
action_open_page | 018ef3f9-73a0-76b7-b743-4572805ff656 | no-op |
action_maps_address | 018ef3f9-48e0-72af-9d89-dd5e372b7027 | no-op |
action_track_add | 018ef3f9-88c6-7eca-96e2-40d5fd2f225c | no-op |
action_scroll | 0191c1e1-8c42-72b9-a3d2-e8057ae7b6f9 | catalogue only |
Piège. Ouvrir une route =
action_link 018ef76b-29d7-7892-b912-8dfa0c23f5f7 + data = uuid de la route. action_open_page / action_open_view = no-op live. data: "/contact" (path string) n’est pas un uuid route → urlLaunchNew (mauvais).path / query sur le view = extras (vidéo time t=, overlay copy). Ce n’est pas le mécanisme principal d’ouverture de route. Un bouton Contact n’a pas besoin de path : uuid_action → action_link → uuid route.