question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Modal UI for Snippet Data Entry

See original GitHub issue

There is support for something like this for media snippets.

"frontMatter.dashboard.mediaSnippet": [
    "{{< caption \"{mediaUrl}\" \"{description}\" >}}"
  ],

This request is to extend this feature and define a template/UI for filling in variables that editors can use to define the values inserted into the snippet. It would be nice if the same syntax used for defining a taxonomy Content Type was used to define the structure/content of the UI for the snippet. Then you would need to map the inputs in the UI to placeholder variables in the snippet string/text. In the example above, {mediaUrl} and {description} would be placeholder variables that would be replaced by the input to string fields that the editor typed into the UI.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
estruyfcommented, Mar 11, 2022

Logic has been updated, the docs as well: https://beta.frontmatter.codes/docs/snippets

1reaction
estruyfcommented, Mar 10, 2022

Oh, yeah, thought you {} were required, but if that is not the case, you can remove these.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap Modal - examples & tutorial
Modal is a responsive popup used to display extra content. That includes prompts, configurations, cookie consents, etc. Use MDB modal plugin to add...
Read more >
Modals in UI Builder - Product Documentation | ServiceNow
Custom modals can be thought of as a container component on a modal. You can add a custom layout, components, events, and data...
Read more >
Modal | Bulma
Bulma is a free, open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for...
Read more >
How to Make Dialogs (The Java™ Tutorials > Creating a GUI ...
A Dialog can be modal. When a modal Dialog is visible, it blocks user input to all other windows in the program. JOptionPane...
Read more >
Transactional modal - Carbon Design System
Modals are a variant of dialog used to present critical information or request user input needed to complete a user's workflow. Modals interrupt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found