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.

Document placeholders

See original GitHub issue

Basically I was looking for a way to make filename: give the same output that Jekyll uses to parse posts, i.e. in the format of YEAR-MONTH-DAY-my-title.md so that I could iterate through it easily via {% for post in site.categories.user_posts %} ... etc The closest I’ve gotten is {fields.date}-{fields.title} which gives a filename output of:

2016-11-20T21:07:36.028Z-my title.html.md

I was also wondering if you could put in a setting so we can configure the file format, like instead of .md, we could use .html?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
eduardoboucascommented, Jul 4, 2017

@twentytwoo Well, it took a while to land this feature, so thanks for your patience and for your help with testing. I’ve deployed the feature to the live API. Will close the issue as soon as I add this to the documentation.

2reactions
ctrl-bcommented, Feb 4, 2017

I have a workaround for this feature, I’m sending the values using options[name] hidden fields, everything is preformatted on the client’s side with JS, date and dashed file name, my staticman config file looks like this:

filename: "{options.submitdate}-{options.dashedtitle}"

Additionally it would be great that commitMessage: accepts placeholders too, if so we can include a title or something more related to what was submitted/sent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

About Placeholder Documents
You can create placeholder entries in the Document Manager for Word, Excel, PDF, or other files that do not currently exist in the...
Read more >
Document Placeholders - dotloop support
Document placeholders are perfect for documents that are required for a transaction, but aren't necessarily a template themselves.
Read more >
Format placeholders | Google developer documentation style ...
Placeholders in sample code and commands represent values that the user must replace when they use the sample input. Placeholders in example ...
Read more >
Create a Placeholder in a Microsoft Word document
Create a placeholder, such as a Date field in a Microsoft Word document. ... On the Insert tab, click Quick parts and select...
Read more >
How to Insert a Placeholder in Word document - Javatpoint
Placeholder is also called as dummy text or filler text. It is a character, word, or string of characters that temporarily holds the...
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