Developer forum

Forum » Integration » Item provider - importing item page hierarchy

Item provider - importing item page hierarchy

Lars Larsen
Reply

Hi

I would like to use the Item Provider (Integration Framework) when importing some item based pages. But I can't make my import activity import item based pages in a page hierarchy. Is that possible at all. If not are there a work-around that could be used?

 


Replies

 
Dmitriy Benyuk
Reply

Hi Lars,
There is a setting called "New items root page" - you can select a root page for your new imported items, all new items will reside under this "root page".
You can also set the value for "RelevantPageID" column to associate the existing pages with your imported items.
Regards, Dmitrij

 
Lars Larsen
Reply

Hi Dmitriy

Yes, I know of the features you mention. But I have tried creating some item based pages in a hierarchy structure, exporting the pages, deleting the pages in DW and then importing the pages. When importing the pages they are imported but in a flat structure beneath the page I have choosen in "New items root page". The imported pages do not maintain their original posistion in the page hierarchy of which they originally where.

 
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Lars,
as a workaround you can write you own JobFinished notification subscriber that can be applied to your job when it is finished successfully.
And inside it get a subpages from the root page and sort them as you need using the Dynamicweb API. There is a Page::Sort property that is needed to update.
Regards, Dmitrij

Votes for this answer: 1
 
Lars Larsen
Reply

Hi Dmitriy

Yes, your'e right about your suggested work-around. I can handle the problem my self. But I was just wondering if Dynamicweb was able to export an item page hierarchy and import the same item page hierarchy and maintain the original page hierarchy structure. But that is unfortunately not the case. I will make a feature request. Thanks for your time.

 

You must be logged in to post in the forum