Developer forum

Forum » Rapido » Allow Module Attachement in Paragraph Containers

Allow Module Attachement in Paragraph Containers

Lara Arsénio
Reply

Is there any inconvenient in having the "allow module attachment" active, by default, in Paragraph Container ItemType?

The reason is i need to have the background image and with definitions of a Paragraph Container, for some areas that will have Apps.

After doing this change in the latest version or Rapido It worked as I expected. Adds one App + the configured paragraphs. Is this something Rapido Team is considering to change?


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Lara

I hope I understand you correctly.

The paragraph container on Rapido is an Item type, not an actually Dynamicweb paragraph. It is not possible to attach modules to the "paragraphs" inside the paragraph container, as they are not real paragraphs.

If you are desperate for a solution, there is a hack, but it is a little complex and it requires some work. And that is the reasons we have not implemented it. You can make a copy / custom paragraph container + paragraph item type. Then in the custom Paragraph item type, add a Link field "External paragraph ID", and set it to only select paragraps - Then in the custom Paragraph template you can render the exernal paragraph by using something like this:

@RenderParagraphContent(ExternalParagraphID)

http://doc.dynamicweb.com/api/html/0ffaeb65-a4b9-b5de-862d-64ce03e169b5.htm

And, of course, you use can attach any module you like on the external paragraph. 

I think, and hope, our possibilities regarding content will be improved in Dynamicweb 10 - But, of course, there will be a long wait until we have that.


Best regards
Karsten Thuen

 
Lara Arsénio
Reply

Hi Karsten.

But I was not looking for a solution, I was suggesting one:

1) Activate "Allow Module Attachment" in Paragraph Container Item Type;

2) Add a Module (Ex. Product Catalogue)

3) Now the Paragraph Container, allows to configure a app, that will be output in last, after the other paragraphs.

(see images attached with the setup)

From what I have tested, It works as expected, and I get to have all the necessary design configurations, regarding background images and Width for that area, With a app inside, not just limited to content paragraphs.

The option you suggested seems good too, but this change in Item type settings, worked fine for me, making the Paragraph Containers more Dynamic, and I would love to see it available in 3.2 release.  And if not, would that configuration be lost If I upgrade my Rapido from 3.1 to 3.2?

 

PC_Settings.PNG Setup_Paragraph_Container_With_App.PNG
 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply
This post has been marked as an answer

Hi Lara

Thanks for the clarification. The reason why to not "Allow Module Attachment" by default on the paragraph container, is that we do not want it to be harder to use. Especially as most users will never need to attach a module to the paragraph container. 

Unfortunately all changes you make to files, not named "custom" something, that comes with Rapido, will be overwritten when upgrading. You can copy the Paragraph Container item type, and re-name it to i.e. "ParagraphContainer__Custom". This way it will not be overwritten. The good thing, is that by doing this it is very easy to track your customizations. The bad thing is, of course that it requires your attention and you will need to maintain all your customization. 

If the "Allow Module Attachment" on the Paragraph container is requested enough, I can take the discussion with my team. I am fully on your side, maintaining a "ParagraphContainer__Custom" simply to allow modules is not a good option either. 


Best regards
Karsten Thuen

Votes for this answer: 1
 
Lara Arsénio
Reply

Hi Karsten.

Yes, that is what I am considering, to isolate this in a separate item - type, as there are more details to tune in order to make this combination of apps and paragraph container 100%v functional, such as not having the need to create other paragraphs inside the container, to display the app. 

Thank you for the reply

 

 

You must be logged in to post in the forum