Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template type snippet - Cannot edit elements #285

Open
Gilbertdelyon opened this issue Jun 13, 2023 · 0 comments
Open

Template type snippet - Cannot edit elements #285

Gilbertdelyon opened this issue Jun 13, 2023 · 0 comments

Comments

@Gilbertdelyon
Copy link

Gilbertdelyon commented Jun 13, 2023

What works:
In a template type page you can click in the top left menu and edit elements:
image
So far so good.

What doesn't work:
In a template type snippet you cannot edit elements (at least as far as I see)
In most cases it's not an issue because you can modify elements directly in the snippet.
But let's suppose your element is a text type element that you use as url in an anchor or in an image like this:
<a href="{{ my_text_element }}"> link text </a> or <img src="{{ my_text_element }}"/>
In this case you are cooked. You can only edit the default value of the element

Workaround
Instead of a "simple" template you can put your data in a container. This will allow to edit elements, but It's tricky.

Suggestion
Add somewhere an "edit snippet elements" button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant