Join the Webstudio community

Updated 11 months ago

Improve ability to add collection variables in large text inputs

At a glance
My use case is adding schema. I have some JSON and want to insert various collection items into the JSON and concatentaiton is difficult.

I have a several ideas:
  • Support template literals. Much smoother than having to concatenate everything. Especially when lots of quotes are already at play
  • Do it like Webflow where you can click the add variable button directly inside the text at the exact position you want to insert something
  • Support something like double brackets without having to concatenate. So typing something like {{ would pull up the menu to insert vars.
Not a big prio, much less than CMS which is right up there with oxygen itself.

Here's the schema for reference:

Plain Text
<script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "BlogPosting",
    "headline": "",
    "image": [
      ""
    ],
    "datePublished": "",
    "dateModified": "",
    "author": [{
      "@type": "Person",
      "name": "John Siciliano",
      "url": "https://www.linkedin.com/in/johnsicili/"
    }]
  }
</script>
Attachment
image.png
O
1 comment
Template literal seems the way to go here
Add a reply
Sign up and join the conversation on Discord
","url":"https://help.webstudio.is/improve-ability-to-add-collection-variables-in-large-text-inputs-lkRWszJ6V55k","identifier":"lkRWszJ6V55k","publisher":{"@type":"Organization","name":"Webstudio","logo":{"@type":"ImageObject","url":"https://assets.usehall.com/org_01JEYTC8WWMF7N46W9J4J7CFDP/c7f10f06-f934-4e35-b008-431a89254f9f.png"}},"comment":[{"@type":"Comment","text":"Template literal seems the way to go here","dateCreated":"2024-02-04T20:08:50.727Z","dateModified":"2024-02-04T20:08:50.727Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/cdd3ed87-53a0-414a-885a-56b7939e412a","name":"Oleg Isonen","identifier":"cdd3ed87-53a0-414a-885a-56b7939e412a","image":"https://cdn.discordapp.com/avatars/469405813048606720/8b66a5882214c63ee6148fcce3ef8e93.webp?size=256"},"commentCount":0,"comment":[],"position":1,"upvoteCount":0}],"author":{"@type":"Person","url":"https://help.webstudio.is/members/a3a85f00-1132-4262-8176-1ff92ab9d883","name":"John Siciliano","identifier":"a3a85f00-1132-4262-8176-1ff92ab9d883","image":"https://cdn.discordapp.com/avatars/1141467296532009071/8c83067a661d2916bfb8be5a37677463.webp?size=256"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0}}]