Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Customized stylesheets and javascript can not be passed to the templates without a hack.

The hack

Create a new template. Do not add it to any to any Template Type Context.

Put whatever css or javascript you want to add to the file.

Do not use the $ sign (or if so, encode it). However, if you do use the $ sign it will most likely work anyway.

 

## Obtain the template manager
#set($templateManager = $timeTrackingComponentManager.getTemplateManager())
#set($templateCss = $ $templateManager.getTemplateByKey("mycsstemplate"))
 
<style type="text/css">
	$!templateCss.getVelocityFileObject().getContentAsString()
</style>
 
  • No labels