Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
๐
๐
๐
Powered by
Hall
Active
Updated 4 weeks ago
0
Follow
Adding static text before Expression editor
Adding static text before Expression editor
Active
0
Follow
m
mustafasheikh
2 months ago
ยท
New to expression editor. How can we add some static text before the dynamic value in expression editor (For example: Published on)
Attachment
1
B
m
J
5 comments
Share
Open in Discord
B
Bogdan
2 months ago
Try this syntax
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
B
Bogdan
2 months ago
Plain Text
Copy
`Example Text ${PostData.data.data.post.date}`
m
mustafasheikh
2 months ago
Thankyou
J
Jeremy
2 months ago
@John Siciliano, I was reading the docs and see that the backticks didn't get added into the statement. Maybe that's a limitation of gitbook? But if they could be added, it might be helpful in this situation.
https://docs.webstudio.is/university/foundations/expression-editor#expressions
Attachment
J
John Siciliano
2 months ago
Thanks! Fixed
Attachment
Add a reply
Sign up and join the conversation on Discord
Join on Discord