user-defined variables or metadata placeholders in PDF exporter?

Comments

5 comments

  • Avatar
    Jens Rutschmann

    Hi Brad,

    this is indeed possible with the PDF Exporter. In your template use the following code to use the value of your variable:

    $metadata.from("<variable>")

    with <variable> being replaced with your variable's name (you must preserve the double quotes).

    This one works with the metadata plugin. To read the values of arbitrary content properties you can use this similar command:

    $contentProperty.from("<variable>")


    Best regards,
    Jens

    0
    Comment actions Permalink
  • Avatar
    Stefan

    Hi Jens,

    as I am trying to get some metadata from the adhoc workflows plugin (http://support.k15t.com/entries/20871367-access-to-adhoc-workflows-in-pdf-exporter) I stumbled uponthe Replacement Reference and your line $metadata.from("Author") .

    I tried using it, but instead of metadata, it just output "$metadata.from("Author") ". Why is that?

     

    Best regards,

    Stefan

     

    PS: Our installation does have the Metadata Plugin...

    0
    Comment actions Permalink
  • Avatar
    Ellis Pratt

    confluence metadata plugin 2 is only supported to version 3.5. How would you do this in version 4 of Confluence?

    0
    Comment actions Permalink
  • Avatar
    Stefan Kleineikenscheidt

    Hi Ellis,

    good question, but I am afraid there is not real solution (yet).

    For your information: The metadata macro that is shipped with Confluence does not work with the Scroll Exporters (partly because it doesn't come anywhere near the real metadata plugin).

    Cheers,
    -Stefan

    0
    Comment actions Permalink
  • Avatar
    Jens Rutschmann

    Hi all,

    the metadata plugin has been migrated to Confluence 4 in the meantime, see here: https://marketplace.atlassian.com/plugins/org.andya.confluence.plugins.metadata

    Best regards,
    Jens

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk