Allow Custom Variables in the Editor #35806
Labels
[Feature] Block bindings
[Feature] Custom Fields
Anything related to the custom fields project - connecting block attributes and dynamic values
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
There is no real way to add custom variables to pages from a database. The closest option in WordPress was to use custom fields but it seems as though that is being phased out. Other CMS's such as Webflow, SquareSpace, and Wix allows users to add custom information from a database to their pages.
What is your proposed solution?
Give uses an easy panel to store variables in a variables database. Then allow users to access those variables in the page design. For example, if I wanted to show the logged-in user's name on a page I would type or select the option from the list:
Welcome, {{first.name}}!
There are users with the names Bob, Mary, and Robert. Based on who is logged in the user would see:
Welcome, Bob!
Welcome, Mary!
Welcome, Robert!
Users would be able to create their own variables and edit them with javascript.
The text was updated successfully, but these errors were encountered: