Feature Request: Quick Copy for Parameter DC

Howdy @charlie!

A problem I run into regularly on sites I’ve created a while ago is not remembering the structure of the JSON I used when setting up parameters, making it difficult to quickly write the {{dc:xxx}}.

image

So, I typically have to go back into the Parameters settings to look at the JSON to remind myself how to structure the {{dc:g:link.resume}}.

{
    "link": {
    "label": "Link Slugs",
    "type": "group",
    "params": {
      "calendar": {
        "type": "text"
      },
      "contact": {
        "type": "text"
      },
      "resume": {
        "type": "text"
      }
    }
  },

I had started putting it in the "description" so I could hover and get a reminder. But that requires a lot of setup at the start.

So, it got me thinking… it would be super convenient to have a way to quickly copy the DC code for a particular parameter right from the parameter list. Perhaps by simply allowing right clicks on parameters and giving a “Copy Dynamic Content” option in the list? (Or something equally easy / unobtrusive)

Quick mockup of what I mean:

image

Would obviously be great if it gave the TWIG version when that was enabled (and supported).

Thanks for considering!

3 Likes

This would be great. Since we already have the Dynamic Content UI for parameters, I would really like to get a select box of all available parameters to use. Much like the looper fields change. I like the context menu solution too, especially since the “Manage” option would let you edit the parameters quickly. Have a great weekend.

1 Like

Perhaps I’ve missed it, but global parameters don’t show up in that UI right? Perhaps that could be a quicker solution.