Developer forum

Forum » Dynamicweb 10 » Field type Item_Type returns null

Field type Item_Type returns null

Joakim Sjöbäck
Reply

Im running the latest dw10 verison, with a vue-app consuming the DWAPI. I've created an item type and when adding a new field with the type item_type, it returns null. Its the exact same setup I have in a similar project running dw9, where it's working correctly.

 

Did I miss something when I set up the field/item type?

 

Thanks,

 

 

dw10.png

Replies

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Joakim ,
It should be all fine with  item_type field type on DW10 as well!
Just tested with Swagger this setup on the Staging.

Is the field values saved/restored correctly when you edit them in backend  UI?

Here on the image an item with just 3 text fields, but with more complex test it also all were fine.
Could you attach your item definition files let I also try with them. What api endpoint do you use - /dwapi/content/rows/{pageId}/{device}?


Best regards,
Vladimir

 

 
Joakim Sjöbäck
Reply

Yes the fields in item_type Settings are properly rendered, however Settings itself render as a text field in the parent item_type.

So the usage is item_type: 1Column, has one item_type field with Settings selected. Now when, in visual editor, i edit the row: 1Column, this is what it looks like:

dw10.png
 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply
This post has been marked as an answer

Hi Joakim,

Yes, I also noticed that bug - the Settings field should not be rendered of course.
Will fix this asap!

Best regards,
Vladimir

Votes for this answer: 1

 

You must be logged in to post in the forum