Issue #1731Opened January 17, 2019by abozhinov2 reactions

[QUESTION] What is the best way to manage dynamic components?

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.

  1. Have e-commerce store and use GrapesJS.
  2. We have PAGES and in this pages want to add product collections or collection with brands (logo).
  3. I want to create few components like product collection, brand collection, blog posts and ect.
  4. 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:

  1. Create a product collections - collection 1, collection 2 and collection 3.
  2. Create new page and drag component "product collection".
  3. In this component I choose from already added collections.
  4. Between this components I add text, images, links ect.
  5. Save the page and preview it.
  6. On the place of components "products collections" I want to see all the products that I add from the CMS.

Regards, Alex

Answers (3)

artfJanuary 19, 20191 reactions

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/

abozhinovJanuary 29, 20191 reactions

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 template.

lock[bot]January 30, 20200 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.