Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

<?<atlassian-plugin key=" <project_home>/src/atlas-create-product-plugin-module/atlassian-plugin.xml

nodejsgurj1 March 13, 2018
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" media="all"
href="/s/1418/13/1.0/_/download/resources/plugin.example:mechanical-parts/sprocket-lt-ie9.css" />
<![endif]-->
<web-resource key="mechanical-parts" name="Mechanical Parts"
i18n-name-key="com.example.confluence.plugin.special.mechanical.parts.name">
<resource type="download" name="sprockets-lt-ie9.css" location="styles/sprockets-lt-ie9.css">
<param name="conditionalComment" value="lt IE 9"/>
</resource>
</web-resource>
<!--[if IE]>
<link type="text/css" rel="stylesheet" media="all"
href="/s/1418/13/1.0/_/download/resources/plugin.example:mechanical-parts/sprocket-ie.css" />
<![endif]-->
<web-resource key="mechanical-parts" name="Mechanical Parts"
i18n-name-key="com.example.confluence.plugin.special.mechanical.parts.name">
<resource type="download" name="sprockets-ie.css" location="styles/sprockets.css">
<param name="ieonly" value="true"/>
</resource>
</web-resource>
<web-resource key="mechanical-parts" name="Mechanical Parts"
i18n-name-key="com.example.confluence.plugin.special.mechanical.parts.name">
<resource type="download" name="sprockets.css" location="styles/sprockets.css">
<param name="media" value="print"/>
</resource>
</web-resource>
.my-class {
background-image: url(../../../images/icons/confluence-logo.gif);
}
.my-class {
background-image: url(my-images/mypicture.gif);
}
<resource type="download" name="my-images/" location="com/example/plugin/myimages"/>
<resource type="download" name="my-style.css" location="com/example/plugin/my-style.css"/>
<resource type="download" name="aimon.gif" location="templates/extra/impresence/aimon.gif">
<param name="content-type" value="image/gif"/>
</resource>
<!-- A resource has a type, a name and a location. The resource definition maps -->
<!-- some arbitrary resource name to where that resource would be located in -->
<!-- the server's classpath -->
<resource type="velocity" name="template" location="com/example/plugin/template.vm"/>

<!-- For the localisation property file below, it must be named exampleplugin.properties -->
<!-- located under the resources folder -->
<resource type="i18n" name="i18n" location="exampleplugin" />

<!-- Resources may contain arbitrary key/value pairs -->
<resource type="download" name="style.css" location="com/example/plugin/style.css">
<property key="content-type" value="text/css"/>
</resource>
<?xml version="1.0" encoding="UTF-8"?>
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
</plugin-info>
<resource type="i18n" name="i18n" location="com.atlassian.samples.tutorial.myJiraPlugin"/>
<customfield-type name="My Custom Field" i18n-name-key="my-custom-field.name" key="my-custom-field"
class="com.atlassian.samples.tutorial.jira.customfields.MyCustomField">
<description key="my-custom-field.description">The My Custom Field Plugin</description>
<resource name="view" type="velocity" location="/templates/customfields/my-custom-field/view.vm"/>
<resource name="edit" type="velocity" location="/templates/customfields/my-custom-field/edit.vm"/>
</customfield-type>
</atlassian-plugin>

0 answers

Suggest an answer

Log in or Sign up to answer