Print header and footer variables
- The existing
%date
and%time
variables use the system long format. Unfortunately this format is too long for my needs. Would it be possible to add a suffix to them so that the desired format could be selected e.g.%date-s
for the short format so the suffixes would be-s
,-m
,-l
and-f
?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 26 Dec, 2013 12:23 PM
I think it would be more flexible (and easier to fit in the interface)
if I provided a dropdown for selecting from various date/time formats. I
_may_ choose to provide a field for an strftime string, but I think 4 or
5 format choices would probably do the trick.
-Brett
2 Posted by John Purnell on 26 Dec, 2013 12:31 PM
Thanks for the fast response Brett. If you could have a box for a strftime format that would be fantastic.
Support Staff 3 Posted by Brett on 26 Dec, 2013 09:52 PM
Done. It'll be in the next update.
4 Posted by metawops on 26 Dec, 2013 10:45 PM
Awesome, Brett!
On a side note: in your screenshot I spotted a %md_[...] variable -- do I assume right that that's gonna be the way to access all the MultiMarkdown meta variables?
Because I really want to have access to the Author meta tag.
And a little other thing: could you maybe make a checkbox for "Don't print header/footer on the first page"? That would help a lot, too. :-)
Thx so much!
Stefan.
Support Staff 5 Posted by Brett on 26 Dec, 2013 10:59 PM
That's already there. Just use %md_author.
-Brett
6 Posted by John Purnell on 27 Dec, 2013 08:39 AM
Many thanks Brett. Awesome!!
7 Posted by metawops on 29 Dec, 2013 12:49 AM
This a bug? See screenshot. Entered a comma into a footer field between two MMD variables but it didn't get printed in the PDF … :-(
Support Staff 8 Posted by Brett on 29 Dec, 2013 02:06 AM
I suppose it's a bug, but in the interest of catching all metadata keys I capture everything that's not a space after md_. Apparently MMD doesn't, though, so I'll take a look at that.
9 Posted by Frank on 01 Mar, 2017 10:06 AM
When I set the date format to
%e %B %Y
, I would expect to see the name of the month in my local language (as per http://php.net/manual/en/function.strftime.php). However, the month is always shown in the English language. Is this a bug or did I overlook something?Support Staff 10 Posted by Brett on 01 Mar, 2017 05:40 PM
The JavaScript library Marked uses for strftime formatting is apparently
not internationalized. I can fix this, though. Thanks for the report.
-Brett
Support Staff 11 Posted by Brett on 01 Mar, 2017 07:18 PM
FYI, I've fixed this for the next update (I think).
-Brett
12 Posted by Frank on 06 Mar, 2017 10:00 AM
Thanks!
13 Posted by mantoine.mac on 11 May, 2017 12:04 PM
Hi Brett,
Two things :
1. I'd love to have two checkboxes for Headers and Footers Export preferences :
[ ] Print header on first page
[ ] Print footer on first page
2. I have the same problem with month being in english. Any time frame for the release of the upcoming update with the internationalized library ?
Thanks.
Support Staff 14 Posted by Brett on 11 May, 2017 03:47 PM
I'm trying to get the next update out next week, if all goes well.
I'll think about splitting the header/footer on first page option, but
it won't make it into this next release. Can you tell me what the use
case for that feature would be for you?
-Brett
15 Posted by Steinthal on 16 Jun, 2017 10:21 PM
Brett, I can think of the following use cases:
I would appreciate that option.