Commit 60d07321 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* add a new layout parameter 'news_section_id'.

* enable RSS widget that provides a link to RSS rendering of news_section's content list.
* make RSS icon smaller according to smaller national flag icons.
* adjust CSS for these size changes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 532fff66
......@@ -82,6 +82,7 @@
<string>my_layout_header_moto</string>
<string>my_layout_copyright_message</string>
<string>my_layout_search_area_section_id</string>
<string>my_layout_news_area_section_id</string>
</list>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>display_width</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_news_area_section_id</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>News Area Section ID</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block replace="nothing">\n
<!--\n
This widget displays the breadcrumbs of the current context.\n
\n
TODO:\n
- make sure translation is possible or working\n
-->\n
</tal:block>\n
\n
<tal:block tal:define="site_url python:here.getWebSiteValue().absolute_url();\n
news_area_section_id python:here.getLayoutProperty(\'news_area_section_id\', \'\');">\n
<div class="navbutton">\n
<ul>\n
<tal:block tal:condition="news_area_section_id">\n
<li><a href="#" title="RSS"\n
tal:attributes="href string:${site_url}/${news_area_section_id}/WebSection_viewContentListAsRSS">\n
<img src="./mf54_image/icon_rss.png" alt="RSS-Button"\n
tal:attributes="src string:${site_url}/mf54_image/icon_rss.png" /></a></li>\n
</tal:block>\n
<tal:block tal:condition="not:news_area_section_id">\n
<li><a href="#" title="RSS"\n
tal:attributes="href string:${site_url}/WebSection_viewContentListAsRSS">\n
<img src="./mf54_image/icon_rss.png" alt="RSS-Button"\n
tal:attributes="src string:${site_url}/mf54_image/icon_rss.png" /></a></li>\n
</tal:block>\n
</ul>\n
</div>\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewRSSWidget</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -15,7 +15,6 @@
<list>
<string>default</string>
<string>editable</string>
<string>enabled</string>
<string>title</string>
</list>
</value>
......@@ -58,6 +57,16 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -70,6 +79,10 @@
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -83,7 +96,7 @@
<div class="navbutton">\n
<ul>\n
<li><a href="#" title="RSS"><img src="./mf54_image/icon_rss.gif" alt="RSS-Button" /></a></li>\n
<li><a href="#" title="RSS"><img src="./mf54_image/icon_rss.png" alt="RSS-Button" /></a></li>\n
</ul>\n
</div>
......@@ -93,10 +106,6 @@
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_editor_field</string> </value>
......@@ -119,4 +128,20 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/WebSection_viewRSSWidget</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -128,12 +128,12 @@
.sitename a:hover {text-decoration:none;}\n
\n
/* BUTTON NAVIGATION */\n
.navbutton {width:400px; position:absolute; z-index:2; margin-top:26px; margin-left:547px !important /*Non-IE6*/; margin-left:550px /*IE6*/;}\n
.navbutton {width:400px; position:absolute; z-index:2; margin-top:43px; margin-left:547px !important /*Non-IE6*/; margin-left:550px /*IE6*/;}\n
.navbutton ul {float:right;}\n
.navbutton li {display:inline; list-style:none;}\n
.navbutton li a {padding-left:3px;}\n
.navbutton a:hover {text-decoration:none;}\n
.navbutton a img {height:32px;}\n
.navbutton a img {height:15px;}\n
\n
/* GLOBAL NAVIGATION */\n
.navglobal {width:600px; position:absolute; z-index:3; margin-top:65px; margin-left:349px !important /*Non-IE6*/; margin-left:351px /*IE6*/;}\n
......@@ -318,7 +318,7 @@ div.subcontent-box.headbox1noicon h1.noicon {background:none;}\n
div.subcontent-box.headbox1noicon h2.noicon {background:none;}\n
\n
/* FLAG BUTTON NAVIGATION -- new css for flag to separate flag from rss with keeping the same style */\n
.navbuttonflag {width:400px; position:absolute; z-index:2; margin-top:43px; margin-left:517px !important /*Non-IE6*/; margin-left:520px /*IE6*/;}\n
.navbuttonflag {width:400px; position:absolute; z-index:2; margin-top:43px; margin-left:526px !important /*Non-IE6*/; margin-left:520px /*IE6*/;}\n
.navbuttonflag ul {float:right;}\n
.navbuttonflag li {display:inline; list-style:none;}\n
.navbuttonflag li a {padding-left:3px;}\n
......
......@@ -15,48 +15,39 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts32287817.48</string> </value>
<value> <string>ts42726864.84</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>icon_rss.gif</string> </value>
<value> <string>icon_rss.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/gif</string> </value>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">R0lGODlhGgAgAPcAAP/////9+v/+/faDJvNyEfR1FvN0FvR4F/R3F/R5GfN3GfR7HfV+IPR6IPR8
IfR7Ivd/I/d9I/V+I/R9I/d/JPV+JPeBJfWAJfWAJviDJ/WCJ/WCKPWCKvWFLfaGMfWGMvaTSfih
X/ilZfiscvmzfPq5ifq9kPq/kfrAk/m+kvrDmfzWuvzeyP3m1f7r3f7x5/707P759f/7+PNqDvNv
EvNyFfRzFvRyGfR1HPR2H/R2IfR4IfN1Ifd7I/d5I/J4I/J5JPWHOvWKQvehZPrEnvrIpvvQsfzT
tvvRtfzbxPBkD/NrE/JqF/NuGvNyHfNyH/RzIPR0IfNxIfZ2I/V0I/R7LPR9L/WGQfWMSvejbfmt
ffmxhPFmFO5iFO5jFu9lGPFqGfJuH/FtH+9qH/FvIe9qIe9sIu9rIvNxJPJvJPFuJfBvJ/agcPm4
kfi6lfi7mf/69+xiHO1mHuxkIO1oIfBrI+5pI+1mI/BrJe9rJe5oJu5sJ+1pJ+92OvCASPOcb/Ww
jfzj1v3r4v707//9/OhUEepdHepiI+1mJephJOpiJexlJutlJupiJuFjKeFkK+BjKuBqNu97Q+5/
S/CPYvCcd/KmhPfIs/nWxfzk2eROEORTGOZYG+ZbIuhfI+ddJOVcI+VcJeliJ+deJuheJ+ZdJ91b
J91fLN9qN99pN95oN91mN+BpON5oONxoOd9tPt1sPul4S+2MZP759+NTHONXI+RZJOJVJOZaJ+Vb
J91aKN5mON1mON1lONxkN9piN9xjONxqPtxoPul0R9+DY/O6pvjPv95JGuJRH99RJOFTJeBSJeNX
J+JVJuBSJuFUJ+BVKeNbLNthONtiON6DZt6Ha96HbPCpkffWy/nc091NI91OJN1MJN5PJt9RJ91Q
Jt1PJt2DaOOei+6nlNtKJNpHJN5NJ9tMJt9bOPTJv9Y9HtlEItdDJNpHJ9tJKNpHKNlHJ+JyW+WE
cOOilOWpnOrA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aijXbiXiayvZcCXkbSfZcSXbcDDaciDb
cTDccTDjcCzbcybccjDcdCDbdCbcczDmcSjhcjLjci7cdDDkcyzcdTDddibddTDddyfddjHodCfe
dzDeeCfeeDHldjHfeTHqdyXfeijheiffejHieD/ieyfneS/reSXgezLgfC7gfDLoei/ffS7kezTi
fSjcfjTqey7gfjLgfy/cgDnhgC/hgDPqfjDhgTTfgETvfybvfyfqgDHrgTDsgTHlgjznhDn0hiLy
hijxhyPzhijvhjTyiR/viDPriyrlilTxijH3iiD1iij2ix72iyX1iyjzjCrfjljyjDbojznyjir4
jSX4jyD3jyn2kCP1jzH0jzXyjzz5kCX1kSvukUb1kjjqlEX4ky/ulEb7lCX5lC37lCjvljj3lDXs
mD7tmEflmVv3lzr7ly/pmVL5mDXqm0f4mTj5mTfvmlTum1Hsm1n5mzzvnUbsnkz7nDjtn0v7njn7
njrvoEv7njzsn2H2n0b7nzv7nzz3n0n7nz77n0D8oT/8oUDzo0/xomTuo2v1pE/mpXP0p1b4qFfs
q2r1q1/srHr3rV34rmD5rmH6sWP3smfvs3f7smPytozwt5DrvJPxupruvZzxwZr5wYv3w5Pz0Kv1
0q351LD61a/017v22br228L13sn34cz34sz94sf848v45dL76dr86dn97Nr67+L+7+D78en+8eP9
8ef78un98un+8uj78+r78+388+v79PD+9/H9+vf9+/j++/j++/n/+/f+/fz//vz//v7///9n4wWq
AAAAAXRSTlMAQObYZgAAAO5JREFUCB0FwctOwkAUAFDu3MvMtFDTpgVJUYniygiJiQv/wo/wO3Vj
2LDxkbAgMZqI0YTQgm3tg+lMPQdariTBiLgQxOp7cj3oStsRjtO1D+qaeDW907vFRkiORadNaA9G
tjpPVhuBbTDoh+Cn+6AvZSY0vpLsQLzKJ/2QcFHqDRG/uGZx9FyNFP1QTmRjFow9/kjh9AUKPD2L
llsacJX34Cv6ZJDlN8PZu380W3uTb01Vc3VpwVMvcNITd6cZWqxUsNw2wW+GiSLL+fBwrh7ceTJ8
Kw0c38qiKso8TteVahS0DkO1/yuN0bo2pvkH77Fm0pXuJPEAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>32</int> </value>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
......@@ -64,7 +55,7 @@ MNMw/Is0whBTz0MUV2zxxRgLFBAAOw==</string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1447</int> </value>
<value> <int>959</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -72,7 +63,7 @@ MNMw/Is0whBTz0MUV2zxxRgLFBAAOw==</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>26</int> </value>
<value> <int>15</int> </value>
</item>
</dictionary>
</pickle>
......
91
\ No newline at end of file
92
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment