From 2720c63533f0a452e97ab946a6d3c8a5d2766f49 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 6 Apr 2015 12:15:47 +0000 Subject: [PATCH] Foundry support for ccm-cms-types-image git-svn-id: https://svn.libreccm.org/ccm/trunk@3309 8810af33-2d31-482b-a856-94f89814c4df --- .../contenttypes/ui/ImagePropertyForm.java | 4 - .../lib/template-tags/content-items.xsl | 1 + .../lib/template-tags/content-items/image.xsl | 404 ++++++++++++++++++ 3 files changed, 405 insertions(+), 4 deletions(-) create mode 100644 ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/image.xsl diff --git a/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ui/ImagePropertyForm.java b/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ui/ImagePropertyForm.java index c98599000..908f41066 100755 --- a/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ui/ImagePropertyForm.java +++ b/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ui/ImagePropertyForm.java @@ -101,8 +101,6 @@ public class ImagePropertyForm /* Image doesn't use the description property part of the basic properties and persisted in cms-pages, but it's part of the type specific basic properties. */ - add(new Label(GlobalizationUtil - .globalize("cms.contenttypes.ui.description"))); ParameterModel descriptionParam = new StringParameter(Image.DESCRIPTION); descriptionParam.addParameterListener(new StringInRangeValidationListener(0, 1000)); TextArea description = new TextArea(descriptionParam); @@ -197,8 +195,6 @@ public class ImagePropertyForm .globalize("cms.contenttypes.ui.image.origin")); add(origin); - add(new Label(ImageGlobalizationUtil - .globalize("cms.contenttypes.ui.image.origSize"))); ParameterModel origSizeParam = new StringParameter(Image.ORIGSIZE); origSizeParam.addParameterListener(new StringInRangeValidationListener(0, 100)); TextField origSize = new TextField(origSizeParam); diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index a826f4380..11f49f412 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -35,6 +35,7 @@ + diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/image.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/image.xsl new file mode 100644 index 000000000..8ef56420b --- /dev/null +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/image.xsl @@ -0,0 +1,404 @@ + + + + + + + Tags for displaying the properties of ccm-cms-types-image + + +

+ The file provides tags for displaying the special properties + of ccm-cms-types-image. +

+
+
+ + + +

+ Outputs the value of the artist property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the copyright property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the description property. + This is equivalent to the lead text of an article. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the license property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the material property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the publishdate property. + The date can be formatted using the date format tags. +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ Outputs the height in pixel of the image. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the long description (the main text) of the image. +

+
+
+ + + + + + + + +

+ Outputs the value of the origin property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the origSize property. +

+
+
+ + + + + + + + + + + + + + + +

+ Puts the necessary informations for showing the image on into + the environment. +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + +

+ Puts the necessary informations for showing the thumbnail on into + the environment. +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + +

+ Outputs the value of the site property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the source property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the value of the technique property. +

+
+
+ + + + + + + + + + + + + + + +

+ Outputs the width in pixels of the image. +

+
+
+ + + + + + + + + + + + + +
\ No newline at end of file