Print header and footer variables

John Purnell's Avatar

John Purnell

26 Dec, 2013 12:20 PM

  1. 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?
  1. Support Staff 1 Posted by Brett on 26 Dec, 2013 12:23 PM

    Brett's Avatar

    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. 2 Posted by John Purnell on 26 Dec, 2013 12:31 PM

    John Purnell's Avatar

    Thanks for the fast response Brett. If you could have a box for a strftime format that would be fantastic.

  3. Support Staff 3 Posted by Brett on 26 Dec, 2013 09:52 PM

    Brett's Avatar

    Done. It'll be in the next update.

  4. 4 Posted by metawops on 26 Dec, 2013 10:45 PM

    metawops's Avatar

    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.

  5. Support Staff 5 Posted by Brett on 26 Dec, 2013 10:59 PM

    Brett's Avatar

    That's already there. Just use %md_author.

    -Brett

  6. 6 Posted by John Purnell on 27 Dec, 2013 08:39 AM

    John Purnell's Avatar

    Many thanks Brett. Awesome!!

  7. 7 Posted by metawops on 29 Dec, 2013 12:49 AM

    metawops's Avatar

    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 … :-(

  8. Support Staff 8 Posted by Brett on 29 Dec, 2013 02:06 AM

    Brett's Avatar

    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. 9 Posted by Frank on 01 Mar, 2017 10:06 AM

    Frank's Avatar

    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?

  10. Support Staff 10 Posted by Brett on 01 Mar, 2017 05:40 PM

    Brett's Avatar

    The JavaScript library Marked uses for strftime formatting is apparently
    not internationalized. I can fix this, though. Thanks for the report.

    -Brett

  11. Support Staff 11 Posted by Brett on 01 Mar, 2017 07:18 PM

    Brett's Avatar

    FYI, I've fixed this for the next update (I think).

    -Brett

  12. 12 Posted by Frank on 06 Mar, 2017 10:00 AM

    Frank's Avatar

    Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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