[Object] Updates fields - Waiviogit/waivio GitHub Wiki
-
Main modal windows details Add update object modal window. Main template
Field:
field {
name: "parent",
body: "nbj-test",
locale: "en-US"
}
Information about update.
Field type: object.
- name - name of field. Field type: string;
- body - value of field. Field type: string;
- locale - locale of field (en-US etc.). Field type: string.
Field Name +Details |
Example Value (in JSON) | Description |
---|---|---|
parent |
field { name: "parent", body: "nbj-test", locale: "en-US" }
|
body - object permlink |
# Block | MENU | |
menuItem (List) |
field { name: "menuItem", body: "{\"title\":\"new item\", \"style\":\"highlight\", \"linkToObject\":\"mor-test-list-not-bad-advice\"}", locale: "en-US" }
|
body - all information about menu item (title, style, object link, image). |
sortCustom (new Menu sorting) |
field { name: "sortCustom", body: "[\"dfr-test-page-id17080903\",\"vhi-test-list-2\"]", locale: "en-US" }
|
body - array with object permlinks |
# Block | MENU (LEGACY) | |
listItem |
field { alias: "test list" type: "menuList" name: "listItem", body: "nbj-test", locale: "en-US" }
|
alias - list title. Field type: stringbody - object permlink type - listItem has 2 types: menuList, menuPage. For list should be "menuList" type |
listItem (Page) |
field { alias: "test page" type: "menuPage" name: "listItem", body: "dfr-test-page-id17080903", locale: "en-US" }
|
alias - page title. Field type: stringbody - object permlink type - listItem has 2 types: menuList, menuPage. For page should be "menuPage" type |
button |
field { name: "button", body: "{\"title\":\"Button\", \"link\":\"https://waiviodev.com/object/vvr-floret\"}", locale: "en-US" }
|
body - include information about title and link |
newsFilter |
field { name: "newsFilter", body: "{\"allowList\":[[\"lqd-test-rest-id04071600\", \"yht-test-rest-id27071652\"], [\"nbj-test\"]], \"ignoreList\":[\"lac-closed-panda\"], \"typeList\":[\"restaurant\"]}", locale: "en-US" title: "News" }
|
body - include information about news filter rules: allowList, ignoreList, typeList. This field includes object permlinks |
blog |
field { name: "blog", body: "daine-cherry", locale: "en-US" blogTitle: "Blog" }
|
body - username, blogTitle - title for blog |
form |
field { name: "form", body: "{\"formTitle\":\"Google form\", \"formColumn\":\"Middle\", \"formForm\":\"Link\", \"formLink\":\"https://u014064.stepform.io/034U7gF\"}", locale: "en-US" title: "Google form" column: "Middle" form: "Link" link: "https://u014064.stepform.io/034U7gF" }
|
body - all infoblogTitle - title for blog column - has 3 options: "Middle", "Middle + Right", "Entire Width" form - has 2 option: "Link", "Widget" link - link value or widget code |
# Block | ABOUT | |
name |
field { name: "name", body: "test rest", locale: "en-US" }
|
body - object name |
description |
field { name: "description", body: "test description", locale: "en-US" }
|
body - object description |
rating |
field { name: "rating", body: "Tasty", locale: "en-US" }
|
body - rating name |
tagCategory |
field { name: "tagCategory", body: "testing", locale: "en-US" }
|
body - tag category name |
categoryItem Tag |
field { name: "categoryItem", body: "testing", locale: "en-US" tagCategory: "testing", id: "26050a17-760b-4ba6-9880-7ebd7947ae33" }
|
body - object permlink id - ? tagCategory - tag category permlink |
galleryItem |
field { name: "galleryItem", body: "https://waivio.nyc3.digitaloceanspaces.com/1661327547_be82a1df-e17a-44d2-8f08-836c3a53e1f7", locale: "en-US" id: "3r6ezkqmi4n" }
|
body - image linkid - ? |
_____ | ____ | |
price |
field { name: "price", body: "30-50", locale: "en-US" }
|
body - text about price |
workTime Hours |
field { name: "workTime", body: "24/7", locale: "en-US" }
|
body - text about hours |
address |
field { name: "address", body: "{\"address\":\"Address\", \"street\":\"Street\", \"city\":\"City\", \"state\":\"State\", \"postalCode\":\"Postal code\", \"country\":\"Country\"}", locale: "en-US" }
|
body - include information from all fields: address, street, city, state, postalCode, country |
map |
field { name: "map", body: "{\"latitude\":\"52.464702\", \"longitude\":\"19.245764\"}" locale: "en-US" }
|
body - include information from two fields: latitude, longitude |
website |
field { name: "website", body: "{\"title\":\"site\",\"link\":\"https://waiviodev.com/object/vvr-floret\"}" locale: "en-US" }
|
body - include information from two fields: title, link |
phone |
field { name: "phone", body: "test rest", locale: "en-US" number: "678876678", }
|
body - phone name number - phone number. Field type - string |
email |
field { name: "email", body: "[email protected]", locale: "en-US" }
|
body - email information |
link Social links |
field { name: "link", body: "{\"linkFacebook\":\"jase-carmel\", \"linkTwitter\":\"jase-carmel\", \"linkYouTube\":\"jase-carmel\", \"linkInstagram\":\"jase-carmel\", \"linkGitHub\":\"jase-carmel\"}" locale: "en-US" }
|
body - information form fields: linkFacebook, linkTwitter, linkYouTube, linkInstagram, linkGitHub |
companyId |
field { name: "companyId", body: "{\"companyIdType\":\"TEST\", \"companyId\":\"35345T6456\"}", locale: "en-US" }
|
body - information from fields: companyIdType, companyId details |
productId |
field { name: "productId", body: "{\"productIdType\":\"TEST\", \"productId\":\"35345T6456\", \"productIdImage\": \"https://{link}\"}", locale: "en-US" }
|
body - information from fields: productIdType, productId, productIdImage (optional) details |
# Block | SETTINGS | |
avatar |
field { name: "avatar", body: "https://waivio.nyc3.digitaloceanspaces.com/1661327547_be82a1df-e17a-44d2-8f08-836c3a53e1f7", locale: "en-US" }
|
body - image link |
title |
field { name: "title", body: "test title", locale: "en-US" }
|
body - object title |
background |
field { name: "background", body: "https://waivio.nyc3.digitaloceanspaces.com/1661327547_be82a1df-e17a-44d2-8f08-836c3a53e1f7", locale: "en-US" }
|
body - image link |
status |
field { name: "status", body: "{\"title\":\"relisted\",\"link\":\"https://waiviodev.com/object/vvr-floret\"}", locale: "en-US" }
|
body - status information, has 4 statuses: Unavailable, Relisted (+link), NSFW, Flagged |
authority |
field { name: "authority", body: "administrative", locale: "en-US" }
|
body - has two options: administrative, ownership |