Developer forum

Forum » Development » Item stop inheriting

Item stop inheriting

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I have an item that I want to stop inheriting from another one.

  • I can't do it through the UI
  • I updated both the XML and the ItemTypeDefinitions tablel by removing the inherits attribute value
    • update ItemTypeDefinitions
      Set ItemTypeDefinitionsMetadata = Replace(ItemTypeDefinitionsMetadata, ' inherits="Layout"',  ' inherits=""')
      where ItemTypeDefinitionsSystemName = 'StandardParagraph'
  • I went to the backend and I cannot see my Item (although it's still in the DB)
    • And when I go to a paragraph in the backend, it does not recognize the item

 

What am I doing wrong?

 

In the end I will be deleting that "old" Item

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It is not simple to stop inheriting. If B inherits A you will have data in 2 ItemType_sysName tables - and on the paragraph you have a link to one of them. Also in the ItemType_sysName table you have a column with the inheriting information (ItemInstanceType).

So first make sure B table has the right schema. Then move data from A to B. On B table empty the ItemInstanceType column. On paragraphs/Page make sure the right system name and ID is used. And finally iisreset.

BR Nicolai

 

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

 

I got it working, thanks. It was simpler because I wanted to get rid of Item A completely.

 

Nuno

 

You must be logged in to post in the forum