You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very nice to have access to the value of a named element via twig. An example use case:
<figure><imgsrc="..." alt="{{ img_caption }}" .../><figcaptiondata-fred-name="img_caption">Caption text goes here.</figcaption></figure>
Where the above is the source of an element; the caption should be editable on-canvas, rather than in an option. Currently, these sorts of values are inaccessible. It would be wonderful to have access to them, as you can see in this example. Otherwise, we must resort to using options, which defeats the purpose of Fred. (Not that options are bad, they're great). There are plenty more use cases where it would be beneficial to have access to on-canvas values via twig.
A simple improvement like this would go a long way toward bringing Fred closer to traditional modx style templating--an attribute for which web shops have long preferred modx. modx has been such a great tool over the years, especially as it relates to templating and such. I want to see modx catch up to, and surpass, other CMS/CMF projects in features like this (and in every way). Bringing the front-end editor on par with traditional modx templating would be awesome!
The text was updated successfully, but these errors were encountered:
Jsewill
changed the title
Feature Suggestion: Access to field values via twig.
Feature Suggestion: Access to on-canvas field values via twig.
Apr 26, 2023
It would be very nice to have access to the value of a named element via twig. An example use case:
Where the above is the source of an element; the caption should be editable on-canvas, rather than in an option. Currently, these sorts of values are inaccessible. It would be wonderful to have access to them, as you can see in this example. Otherwise, we must resort to using options, which defeats the purpose of Fred. (Not that options are bad, they're great). There are plenty more use cases where it would be beneficial to have access to on-canvas values via twig.
A simple improvement like this would go a long way toward bringing Fred closer to traditional modx style templating--an attribute for which web shops have long preferred modx. modx has been such a great tool over the years, especially as it relates to templating and such. I want to see modx catch up to, and surpass, other CMS/CMF projects in features like this (and in every way). Bringing the front-end editor on par with traditional modx templating would be awesome!
The text was updated successfully, but these errors were encountered: