Developer forum

Forum » Feature requests » Itemtype as Paragraph properties

Itemtype as Paragraph properties

Kevin Steffer
Reply

We just came across, since it is possible to have an itemtype as website- and page-properties could we have a paragraph-property itemtype?

That would make the transition to item based paragraphs or extending paragraphs on existing solution much easier and cheaper to build.

Give it a thought.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Kevin

Thank you for the input. We did consider it, but agreed that other options are better. You can use items entirely for this and disabling old paragraphs.

You can use inherited paragraph items

  • Base paragraph item type (Contains, Heading, image, text, layout options)
    • Sub paragraph item type, i.e. Carousel
    • Gallery
    • Any other needed type

In this way you have your properties and shared settings from the base paragraph that are inherited to any other child paragraph.

Would this be doable?

BR Nicolai

 
Kevin Steffer
Reply

Thank you for your reply.

Your suggestion is what we can do currently. The idea of having a an itemtype as paragraph properties would mean that the transition to itembased paragraphs on existing solutions where all the content on pages are stored inside ParagraphText and ParagraphImage could be extended.

Changing all paragraphs to itembased paragraphs is quite a job on existing solutions.

So my answers to your question wether it is doable - sure but a very large and expensive tasks converting paragraphs to items

 
Nicolai Høeg Pedersen
Reply

I get you,

You could create the new item type - and then loop each paragraph, create a new record in the item table, get the id of that table,  and add itemtype and itemid to the paragraph table. And you should be converted...

BR Nicolai