Document template HTML : use CSS ?

Hello,

Is it possible to use CSS class in document template ? And how ?

thanks

1 votes

1 answers

1902 views

ANSWER



Hello me,

Look at your own question about images: http://answers.nuxeo.com/questions/5608/how-to-insert-an-image-in-a-document-template?page=1#5902

You should use baseURL but this var is empty, so use the total url for now.

This is the code to help you :

< html >
< head >
< link rel="stylesheet" type="text/css" href="http://urltoomuchcool/nuxeo/nxthemes-lib/brandingName_static.css" >
< /head >
< body >

< #list This as doc >
    < h2 class="myclassname" >TITLE< /h2 >
< /#list >

 < /body >
< /html >
0 votes



look at http://answers.nuxeo.com/questions/5901/baseurl-in-freemarker-document-template-is-empty to have the solution for replace baseURL => ${Env['nuxeo.url']}
06/13/2013