Changeset 2183 in products for qPloneDropDownMenu/branches/plone4/trunk
- Timestamp:
- Apr 20, 2010 6:16:43 PM (14 years ago)
- Location:
- qPloneDropDownMenu/branches/plone4/trunk
- Files:
-
- 1 added
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
qPloneDropDownMenu/branches/plone4/trunk
-
Property
svn:ignore
set to
*.settings
*.project
-
Property
svn:ignore
set to
-
qPloneDropDownMenu/branches/plone4/trunk/HISTORY.txt
r1140 r2183 1 2 * compatible with plone 3 [tdesvenain] 3 1 4 0.2.1 2 5 … … 18 21 0.1.11 19 22 20 * divided :hover javascript functionality into two parts: evaluating css by script, saving styles from configlet 23 * divided :hover javascript functionality into two parts: evaluating css by script, saving styles from configlet 21 24 22 25 0.1.10 … … 28 31 * edited for correct work with IE before 6.0 29 32 30 0.1.8 33 0.1.8 31 34 32 35 * optimized page load time for IE … … 35 38 36 39 * corrected and optimized csshover.htc script 37 40 38 41 0.1.6 39 42 … … 66 69 0.1.1 67 70 68 * added the possibility to change portal menu within Plone 71 * added the possibility to change portal menu within Plone 69 72 70 73 * Internet Explorer 5.0 and 6.0 compatibility -
qPloneDropDownMenu/branches/plone4/trunk/README.txt
r893 r2183 7 7 "Download":http://sourceforge.net/projects/quintagroup 8 8 9 (c) "Quintagroup":http://quintagroup.com/ , 2008. 9 (c) "Quintagroup":http://quintagroup.com/ , 2008. 10 10 11 11 support@quintagroup.com * quintessence of modern business … … 17 17 Install 18 18 19 1. Install with Quick Installer. 19 1. Install with Quick Installer. 20 20 21 21 2. For Plone below 2.1 to use drop_down.css add '<dtml-var drop_down.css>' … … 25 25 26 26 You have a list of items of your top level menu, which you can edit in 27 'drop down menu' configlet form. Now, to add submenu to the certain 28 menu item, you need to add unordered list inside of top level menu 27 'drop down menu' configlet form. Now, to add submenu to the certain 28 menu item, you need to add unordered list inside of top level menu 29 29 item ('<li>...</li>') after its title ('<a></a>'):: 30 30 … … 34 34 35 35 Sample menu with 2 submenus:: 36 36 37 37 <li id="portaltab-index_html" class="plain"><a href="http://example.com/" accesskey="t">Home</a></li> 38 38 <li id="portaltab-Members" class="plain"><a href="http://example.com/Members" accesskey="t">Members</a> 39 39 <ul> 40 <li><a href="http://example.com/Members/jdoe">John Doe</a>< li>40 <li><a href="http://example.com/Members/jdoe">John Doe</a></li> 41 41 <li><a href="http://example.com/Members/mmajor">Mary Major</a></li> 42 42 </ul> … … 45 45 <li id="portaltab-events" class="plain"><a href="http://example.com/events" accesskey="t">Events</a> 46 46 <ul> 47 <li><a href="http://example.com/events/previous">Past Events</a>< li>48 <li><a href="http://example.com/calendar">Calendar</a>< li>47 <li><a href="http://example.com/events/previous">Past Events</a></li> 48 <li><a href="http://example.com/calendar">Calendar</a></li> 49 49 </ul> 50 50 </li> … … 67 67 You can click button on 'drop down menu' configlet form to reset menu. 68 68 This can be usefull in case broken html of menu code. Generated code is based 69 on status of 'Automatically generate tabs' in your 'Navigation settings' 70 (in Plone 2.1+). However you will lose your previous code of menu with all submenus 71 after click on 'regenerate menu'. 69 on status of 'Automatically generate tabs' in your 'Navigation settings' 70 (in Plone 2.1+). However you will lose your previous code of menu with all submenus 71 after click on 'regenerate menu'. 72 72 73 If you want to 'regenerate menu' you should pay attention to status of 73 If you want to 'regenerate menu' you should pay attention to status of 74 74 'Automatically generate tabs' in your 'Navigation settings' (in Plone 2.1+). 75 75 -
qPloneDropDownMenu/branches/plone4/trunk/skins/qPloneDropDownMenu/drop_down.css
r2182 r2183 1 /* <dtml-with base_properties> (do not remove this :) */2 1 /* <dtml-call "REQUEST.set('portal_url', portal_url())"> (not this either :) */ 3 2 4 3 body { 5 behavior:url(" &dtml-portal_url;/csshover.htc");4 behavior:url("csshover.htc"); 6 5 } 7 6 … … 16 15 17 16 #portal-globalnav li { 18 margin: 0; 17 margin: 0; 19 18 padding: 0; 20 border: 0; 19 border: 0; 21 20 display: inline; 22 21 float: left; … … 69 68 visibility: visible; 70 69 } 71 #portal-globalnav .csshover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li:hover li:hover li ul { 70 #portal-globalnav .csshover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li:hover li ul, #portal-globalnav .csshover li:hover li:hover li:hover li:hover li ul { 72 71 visibility: hidden; 73 72 } … … 87 86 #portal-globalnav .csshover ul li ul li a:hover, 88 87 #portal-globalnav .csshover ul li ul li:hover a { 89 color: &dtml-globalFontColor;;88 color: #436976; 90 89 } 91 90 … … 102 101 103 102 #portal-globalnav .csshover ul li:hover ul li:hover ul a { 104 color: &dtml-globalFontColor;;103 color: #436976; 105 104 } 106 105 … … 121 120 #portal-globalnav ul li.selected a, 122 121 #portal-globalnav .csshover ul li a:hover { 123 background-color: &dtml-globalBackgroundColor;;124 color: &dtml-globalFontColor;;122 background-color:#436976; 123 color:#436976; 125 124 } 126 125 127 126 #portal-globalnav .csshover ul li:hover ul { 128 127 margin:0; 129 border: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;;130 background-color: &dtml-backgroundColor;;128 border: 1px solid #8cacbb; 129 background-color: White; 131 130 overflow:visible; 132 131 } … … 138 137 139 138 #portal-globalnav .csshover ul li:hover ul li a { 140 color: &dtml-globalFontColor;!important;139 color: #436976 !important; 141 140 margin:0; 142 141 line-height:normal; … … 160 159 * html .ieVisible {display: block;} 161 160 162 163 /* </dtml-with> (do not remove this either :) */ -
qPloneDropDownMenu/branches/plone4/trunk/skins/qPloneDropDownMenu/prefs_dropdownmenu_edit_form.cpt
r372 r2183 35 35 36 36 <form name="menu_edit_form" 37 action="." 38 method="post" 39 tal:attributes="action string:${here/absolute_url}/${template/getId}" > 37 action="." 38 method="post" 39 tal:attributes="action string:${here/absolute_url}/${template/getId}" 40 tal:define="menu here/portal_properties/dropdownmenu_properties/menu|nothing" > 40 41 41 42 <div class="formControls" align="right" 42 tal:define="process_creation request/process_creation| nothing;">43 tal:define="process_creation request/process_creation|string:"> 43 44 <input class="context" 44 tabindex=" "45 tabindex="1" 45 46 type="submit" 46 47 value="Regenerate Menu" 47 48 name="form.button.Regenerate" 48 i18n:attributes="value" 49 tal:attributes="tabindex tabindex/next" /> 49 i18n:attributes="value" /> 50 50 </div> 51 51 52 52 <dl class="portalMessage warning" 53 tal:condition="not: portal/portal_properties/dropdownmenu_properties/menu|nothing">53 tal:condition="not:menu"> 54 54 <dt>Warning</dt> 55 55 <dd> … … 63 63 <label for="menu" i18n:translate="label_portaltabs">Portal tabs</label> 64 64 <div class="formHelp" i18n:translate="help_portaltabs_edit">Here you can change your portal tabs.</div> 65 <textarea cols="80" 65 <textarea cols="80" 66 66 rows="20" 67 tabindex=" "67 tabindex="2" 68 68 name="menu" 69 69 id="menu" 70 tal:content=" portal/portal_properties/dropdownmenu_properties/menu|string:"71 tal:attributes="tabindex tabindex/next;">Portal Tabs</textarea>70 tal:content="menu" 71 >Portal Tabs</textarea> 72 72 </div> 73 73 … … 75 75 tal:define="process_creation request/process_creation|nothing;"> 76 76 <input class="context" 77 tabindex=" "77 tabindex="3" 78 78 type="submit" 79 79 value="Save" 80 80 name="form.button.Save" 81 i18n:attributes="value" 82 tal:attributes="tabindex tabindex/next" /> 81 i18n:attributes="value" /> 83 82 </div> 84 83 -
qPloneDropDownMenu/branches/plone4/trunk/utils.py
r1140 r2183 7 7 8 8 from Products.CMFCore.utils import getToolByName 9 from Products.CMFPlone.migrations.migration_util import safeEditProperty 9 try: 10 # Plone 4 11 from plone.app.upgrade.utils import safeEditProperty 12 except: 13 from Products.CMFPlone.migrations.migration_util import safeEditProperty 14 10 15 from Products.CMFCore.Expression import Expression, createExprContext 11 16 … … 32 37 name=u'plone_context_state') 33 38 actions = context_state.actions() 39 if type(actions) == dict: 40 # Plone 4 41 actions = actions['portal_tabs'] 42 34 43 portal_tabs_view = getMultiAdapter((site, site.REQUEST), 35 44 name='portal_tabs_view')
Note: See TracChangeset
for help on using the changeset viewer.