Commit 9ea2bb07 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* add a configuration field for search_area section id.

* enable search bar using search_area section id.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be775375
......@@ -67,8 +67,6 @@
<string>left (Fonts)</string>
<string>right (Images)</string>
<string>center (Sections)</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
......@@ -76,12 +74,6 @@
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>center (Sections)</string> </key>
<value>
......@@ -89,15 +81,10 @@
<string>my_layout_header_title</string>
<string>my_layout_header_moto</string>
<string>my_layout_copyright_message</string>
<string>my_layout_search_area_section_id</string>
</list>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left (Color)</string> </key>
<value>
......
<?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>title</string>
<string>display_width</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_search_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>Search Area Section ID</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -15,10 +15,9 @@
<list>
<string>title</string>
<string>default</string>
<string>whitespace_preserve</string>
<string>enabled</string>
<string>height</string>
<string>width</string>
<string>height</string>
<string>whitespace_preserve</string>
</list>
</value>
</item>
......@@ -60,6 +59,12 @@
<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>field_id</string> </key>
<value> <string></string> </value>
......@@ -68,10 +73,26 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -84,20 +105,14 @@
<value> <string encoding="cdata"><![CDATA[
<div class="searchform">\n
<!-- <form action="index.html" method="get"> -->\n
<fieldset>\n
<input name="field" class="field" value=" Enter search word ..." />\n
<input type="submit" name="button" class="button" value="Search" />\n
<input name="field" class="field" value="" onkeyup="submitFormOnEnter(event, this.form, \'./ERP5Site_viewQuickSearchResultList\');" />\n
<input type="submit" name="./ERP5Site_viewQuickSearchResultList:method" class="button" value="Search" />\n
</fieldset>\n
<!-- </form> -->\n
</div>
]]></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_text_content</string> </value>
......@@ -132,4 +147,24 @@
</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 encoding="cdata"><![CDATA[
python:\'<div class="searchform"> <fieldset> <input name="field" class="field" value="" onkeyup="submitFormOnEnter(event, this.form, \\\'%(section_id)s/ERP5Site_viewQuickSearchResultList\\\');" /> <input type="submit" name="%(section_id)s/ERP5Site_viewQuickSearchResultList:method" class="button" value="Search" /> </fieldset> </div>\' % {\'section_id\':getattr(here, \'layout_search_area_section_id\', \'.\')}
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -15,10 +15,9 @@
<list>
<string>title</string>
<string>default</string>
<string>whitespace_preserve</string>
<string>enabled</string>
<string>height</string>
<string>width</string>
<string>height</string>
<string>whitespace_preserve</string>
</list>
</value>
</item>
......@@ -60,6 +59,12 @@
<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>field_id</string> </key>
<value> <string></string> </value>
......@@ -68,10 +73,26 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -84,20 +105,14 @@
<value> <string encoding="cdata"><![CDATA[
<div class="searchform">\n
<!-- <form action="index.html" method="get"> -->\n
<fieldset>\n
<input name="field" class="field" value=" Enter search word ..." />\n
<input type="submit" name="button" class="button" value="Search" />\n
<input name="field" class="field" value="" onkeyup="submitFormOnEnter(event, this.form, \'./ERP5Site_viewQuickSearchResultList\');" />\n
<input type="submit" name="./ERP5Site_viewQuickSearchResultList:method" class="button" value="Search" />\n
</fieldset>\n
<!-- </form> -->\n
</div>
]]></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_text_content</string> </value>
......@@ -132,4 +147,24 @@
</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 encoding="cdata"><![CDATA[
python:\'<div class="searchform"> <fieldset> <input name="field" class="field" value="" onkeyup="submitFormOnEnter(event, this.form, \\\'%(section_id)s/ERP5Site_viewQuickSearchResultList\\\');" /> <input type="submit" name="%(section_id)s/ERP5Site_viewQuickSearchResultList:method" class="button" value="Search" /> </fieldset> </div>\' % {\'section_id\':getattr(here, \'layout_search_area_section_id\', \'.\')}
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
66
\ No newline at end of file
67
\ 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