Developer forum

Forum » Integration » Item provider set paragraph name

Item provider set paragraph name

Mikkel Høst
Reply

Hi.

I'm importing data into Paragraph Items. I can't seem to set the "ParagraphName" - It defaults to the Id of the item. I tryed the "NewPageName" but no luck. This is to make is more user friendly when browsing the items in the backend and selecting them. 

DW version is 8.5.1.16

paragraphName.PNG

Replies

 
Morten Bengtson
Reply

Try to set either "Use field for title" or "Title" (pattern) on your item type settings.

 
Mikkel Høst
Reply

Hi Morten.

That does not work. Maybe it only works when looping the items and displaying data?

Se attached image.

backend.PNG itempa.PNG
 
Mikkel Høst
Reply

Hi Morten.

It actualy "works" - If you save the newly imported item then it uses the selected field on the itemtype as title on the paragraf. But it does not work when an new item is created with the item provider.

 
Morten Bengtson
Reply

I also tried importing some items on a site running DW 8.7.1.0 and it didn't work either. It just stored the Title pattern as the paragraph name, e.g. {{Name}}. After manually saving the paragraph the paragraph name was correct. It must be a bug in the Item Provider :/

 
Dmitriy Benyuk
Reply

Hi Morten, Mikkel,
I've reproduced this problem in the new item provider DW 8.7.1 and there is a new bug registred for this in TFS#19580 and will be fixed in the next 8.7.1 hotfix.
 

As for the old item provider in DW 8.5.1 it is not longer supported any more, so the solution can be to upgrade to the newer version of DW 8.7.*
Regards, Dmitrij

 

You must be logged in to post in the forum