Custom Field Issue

Post Reply
jkarelins
Jr. Bludit
Posts: 3
Joined: Tue Sep 22, 2020 2:24 pm

Hello.
I have found strange problem. I am reading a documentation of Bludit for custom fields. And looks it is really easy.
But in documentation all examples are shown as object, but in Bludit admin backend, I see array. I have copied example from documentation, and I have tried both array of objects and object. But looks like it just does not work. I am changing custom fields, receive message, that new configuration saved, but in new content tab I just do not see any custom fields added.
I was thinking, that I have a problem with my local version of Budit, but same happens in online demo of Bludit.
Maybe someone have any ideas?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

jkarelins wrote: Tue Sep 22, 2020 2:25 pm But in documentation all examples are shown as object, but in Bludit admin backend, I see array.
What do you mean with "shown as object"? All examples in the documentation are JSON text (arrays). For example:

Code: Select all

{
    "subtitle": {
        "type": "string",
        "placeholder": "Subtitle for the page",
        "position": "bottom"
    }
}
I have copied example from documentation [...].
Do you have copied it in the field at "Settings" > "General" > "Custom fields"?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
jkarelins
Jr. Bludit
Posts: 3
Joined: Tue Sep 22, 2020 2:24 pm

Hi.
Yes I have copied example to: "Settings" > "General" > "Custom fields".
When you open custom fields section it prints out: [] - empty array.
In examples you use objects.
So I tried pasting a single object in custom fields and single object in [] - array. And nothing happens in admin.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

jkarelins wrote: Tue Sep 22, 2020 7:21 pm When you open custom fields section it prints out: [] - empty array.
Delete [] and paste the following (already given above):

Code: Select all

{
    "subtitle": {
        "type": "string",
        "placeholder": "Subtitle for the page",
        "position": "bottom"
    }
}
In examples you use objects.
Please give an example of such an object.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
jkarelins
Jr. Bludit
Posts: 3
Joined: Tue Sep 22, 2020 2:24 pm

Thanks. It works now.
Sorry for trouble.
Post Reply