r13740 - in ArchGenXML/trunk: . src/archgenxml/templates/profiles
"Vincent Fretin" <[email protected]> Sat, 23 Jul 2011 20:34:18 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: vincentfretin
Date: Sat Jul 23 20:34:18 2011
New Revision: 13740
Modified:
ArchGenXML/trunk/CHANGES.txt
ArchGenXML/trunk/src/archgenxml/templates/profiles/type.xml
Log:
If plone_target_version tagged-value is set to 4.0 or 4.1, then generate
icon_expr instead of content_icon for FTIs.
Modified: ArchGenXML/trunk/CHANGES.txt
==============================================================================
--- ArchGenXML/trunk/CHANGES.txt (original)
+++ ArchGenXML/trunk/CHANGES.txt Sat Jul 23 20:34:18 2011
@@ -4,6 +4,10 @@
2.7 (unreleased)
----------------
+- If plone_target_version tagged-value is set to 4.0 or 4.1, then generate
+ icon_expr instead of content_icon for FTIs.
+ [vincentfretin]
+
- Add a protected FOOT section in type.xml.
[vincentfretin]
Modified: ArchGenXML/trunk/src/archgenxml/templates/profiles/type.xml
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/templates/profiles/type.xml (original)
+++ ArchGenXML/trunk/src/archgenxml/templates/profiles/type.xml Sat Jul 23 20:34:18 2011
@@ -7,7 +7,12 @@
<property name="title"<dtml-if "target_version >= 3.0"> i18n:translate=""</dtml-if>><dtml-var "ctype['type_name']"></property>
<property name="description"<dtml-if "target_version >= 3.0"> i18n:translate=""</dtml-if>><dtml-var "ctype['type_description']"></property>
+<dtml-if "target_version < 4.0">
<property name="content_icon"><dtml-var "ctype['content_icon']"></property>
+</dtml-if>
+<dtml-if "target_version >= 4.0">
+ <property name="icon_expr">string:${portal_url}/<dtml-var "ctype['content_icon']"></property>
+</dtml-if>
<property name="content_meta_type"><dtml-var "ctype['content_meta_type']"></property>
<property name="product"><dtml-var "ctype['product_name']"></property>
<property name="factory"><dtml-var "ctype['factory']"></property>
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/