Hi guys đ .
I'm new to relume. I bought the pro ( or whatever the name is ) plan. Love the product.
However I have one question that I couldn't find answer for on docs. The thing is I'm trying to use relume for a client project. They are like a mental health provider. They have various services, as per image. Everything under the "folder" Treatment
is like a service page. And I would like to use the same "layout" for all services pages under that section.
Is that possible ?
Reason being is that I would love to take advantage of the "Generate copy" feature for each service. However I would like for the layout of the pages to remain the same across all the service pages.
But the issue is that when I generate the pages they are all different and I have to manually change the components for each page.
@Jakob RolĂk yeah so the only way to do this would be to designate one of those pages as your template, and duplicate it for each service, and then copy/paste the title/description of the pages it generated and paste it into those duplicates, then click on the page and "Generate copy". Generating copy should not change the layout - only change the copy. Then you can delete the generated pages and now you should have 4-5 identical layouts, but with different copy.
Okay, thank you. This is what I came up with. But didnât want to waste time, in case there was native way to achieve it. Since there isnât, Iâm just gonna do that. đ
I have one more question if you dont mind:
So the project will be a react website. Where I am looking forward to using the premade components. However they will be populated with data from Strapi.
And my question is whether there is some resource of like the content types of the sections. Meaning I have for example the Layout3 (image). So in the cms I would like to create a reusable component that would represent this React Component.
And itâd be great if there were some definitions of porps for the various sections. So that I could feed it into some LLM that would transform it into strapi component definitions.
I suppose you must have the definitions somewhere. So my question is whether they could be downloaded. Like JSON-schema or ts typings format ?
Let's page in our resident React expert to help you out with these questions!
@Nour mind giving us some insights here?
@Jakob RolĂk Hey Jakob, for the current moment, we only have the inlined version for the sitebuilder export, for the props version, you can find these at https://www.relume.io/react/components
Huh⌠Thx. Just to clarify though.. When I do the export in the design tool , I get everything inlined so this library is something else to the âreact exportâ correct ?
@Jakob RolĂk The library has the same code as the exported version. It is just that the library provides the typescript and props version while the exported version is just jsx and inlined. Weâll be working on that in the next few months to make them one.