What is the best way to manage dynamic components?
You can make use of a custom component and variables to replace on server-side. Take a look at the example I made for you: https://jsfiddle.net/fcsa6z75/7/
Read full answer below āQuestion
Hi, can you please tell me what is the best way to manage dynamic templates. I want to describe you what's my case.Have e-commerce store and use GrapesJS.We have PAGES and in this pages want to add product collections or collection with brands (logo). I want to create few components like product collection, brand collection, blog posts and ect.I don't want user to write PHP code because can make REALLY big mess. I use SAMRTY as a template engine. Let's check the following example:Create a product collections - collection 1, collection 2 and collection 3.Create new page and drag component "pro...
Answers (3)
You can make use of a custom component and variables to replace on server-side. Take a look at the example I made for you: https://jsfiddle.net/fcsa6z75/7/
Can you give me advice how to make mapping with dynamic data. Something like Webflow. They have product collection and you can edit template select TEXT component and choose this is ProductName. Their editor looks like GrapesJS. My concerns are how to preview products in editor and how to store the...
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1966
[QUESTION] Loop over all components
Hi all, I want to create a socket for every button that I add to the canvas. This is working just fine. However, when I reload (using stora...
Issue #938
[Question] How to integrate handlebars with GrapesJS?
Hi, How i can integrate handlebars or other template engine with GrapeJS? I mean to create eg. dynamic component with product details: And...
Issue #1938
[QUESTION] what would be the best way to store the template dynamically
I'm looking to store data dynamically though a id that is called in, at the moment I'm loading in templates dynamically but cant seem to fi...
Issue #1086
[Question] What is the way to generate component with external javascript?
It seems I should not ask such question, but I did spend a lot time to search, could not get a good guide on this. I want to create a FB bl...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins āPremium plugins ship with support, regular updates, and production-ready features ā save days of integration work.
Browse premium plugins āRelated tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.