Confluence CSS override PDF Template CSS

Comments

5 comments

  • Avatar
    Nils Bier

    Hi Mark,

    thanks for contacting us.
    What's the use case behind this approach? Do you want to have dynamic logos depending on the export?

    Best,Nils

    0
    Comment actions Permalink
  • Avatar
    Mark Wilson

    Hi Nils, 

    Dynamic logos is exactly what I want. We have over 20 customers and I would prefer to not have 20 different PDF export templates.

    Thanks for the help!

    Mark

    0
    Comment actions Permalink
  • Avatar
    Martin Kellner

    You could use an entry in the page properties and make a selection in the css of the pdf template. Append all different logos to the resources of the template and change the page property entry before printing.

    1. E.g. Define a page property "customer" and set it to "MostImportantCustomer".

    2. In the Css check for the right customer:

    #if($pageProperty.from("customer")=="MostImportantCustomer")

    <img src="logo_MostImportantCustomer.png" />

    #elseif

    ....

    0
    Comment actions Permalink
  • Avatar
    Mark Wilson

    This worked perfectly. Thanks Martin!

     

    0
    Comment actions Permalink
  • Avatar
    Mark Wilson

    This worked perfectly. Thanks Martin!

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk