Templates like a newsletter. Is it possible?

Hi,
I would like to know if it is technically possible to implement this user story in Weweb?
(As if it were a newsletter)

  1. Fill in a data form, including an image;
  2. Choose a layout from a set of *templates available;
  3. Edit the elements in the selected layout, like color, font, etc.;
  4. Share via email and social networks.
    PS.: * How to create these Layouts?
    Thanks

I am not sure I understand fully the context of your request, but to create a layout I will create a variable object in weweb, assign each element that could be modify with a code color or whatever options you need, for example.
{
“header”: “#000000”,
“bottom”:“#FFFFFF”
etc…
}

Create a page in weweb with the template, and assign the color (or whatever element you want) with the value matching the key.

When your users select a layout or edit a layout, you edit the value of your object matching the key and fetch your template to have updated data and therefore the new design displayed.

Hope that kind of makes sense.

2 Likes

Hi @Ugarovesk :wave:

Yes, it’s possible.

As for, “how to create these layouts”, it’s a little too vague a question :slight_smile:

Can you clarify what you tried and where you’re stuck? Don’t hesitate to share screenshots and screen recordings to helps us get the full context of your setup.

1 Like


First of all, thanks for answering! I must also add that this will be my first project using Weweb (wish me luck :slight_smile: Ok … I’ll try to clarify my question!
The image above shows what I’m trying to do. I want the user to fill out a form, load an image and select a “template” of several. These “templates” I want to create in Weweb. When I refer to the layouts, I mean “graphic positioning of the elements on the page”. That is, in practice the templates are representations of “layouts”! Oops! I already wrote too much :slight_smile:
Thank you so Much.
Fernando