Ignore:
Timestamp:
Apr 20, 2010 6:16:43 PM (14 years ago)
Author:
thomasdesvenain
Message:

compatible with plone 3

  • fixed import errors
  • fixed portal actions are now grouped
  • fixed global values undefined in template
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
  • qPloneDropDownMenu/branches/plone4/trunk/HISTORY.txt

    r1140 r2183  
     1 
     2  * compatible with plone 3 [tdesvenain] 
     3 
    140.2.1 
    25 
     
    18210.1.11 
    1922 
    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 
    2124 
    22250.1.10 
     
    2831  * edited for correct work with IE before 6.0 
    2932 
    30 0.1.8  
     330.1.8 
    3134 
    3235  * optimized page load time for IE 
     
    3538 
    3639  * corrected and optimized csshover.htc script 
    37     
     40 
    38410.1.6 
    3942 
     
    66690.1.1 
    6770 
    68   * added the possibility to change portal menu within Plone  
     71  * added the possibility to change portal menu within Plone 
    6972 
    7073  * Internet Explorer 5.0 and 6.0 compatibility 
  • qPloneDropDownMenu/branches/plone4/trunk/README.txt

    r893 r2183  
    77  "Download":http://sourceforge.net/projects/quintagroup 
    88 
    9   (c) "Quintagroup":http://quintagroup.com/ , 2008.  
     9  (c) "Quintagroup":http://quintagroup.com/ , 2008. 
    1010 
    1111  support@quintagroup.com * quintessence of modern business 
     
    1717Install 
    1818 
    19   1. Install with Quick Installer.  
     19  1. Install with Quick Installer. 
    2020 
    2121  2. For Plone below 2.1 to use drop_down.css add '<dtml-var drop_down.css>' 
     
    2525 
    2626  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 
    2929  item ('<li>...</li>') after its title ('<a></a>'):: 
    3030 
     
    3434 
    3535  Sample menu with 2 submenus:: 
    36   
     36 
    3737   <li id="portaltab-index_html" class="plain"><a href="http://example.com/" accesskey="t">Home</a></li> 
    3838   <li id="portaltab-Members" class="plain"><a href="http://example.com/Members" accesskey="t">Members</a> 
    3939       <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> 
    4141           <li><a href="http://example.com/Members/mmajor">Mary Major</a></li> 
    4242       </ul> 
     
    4545   <li id="portaltab-events" class="plain"><a href="http://example.com/events" accesskey="t">Events</a> 
    4646       <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> 
    4949       </ul> 
    5050   </li> 
     
    6767You can click  button on 'drop down menu' configlet form to reset menu. 
    6868This 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'.  
     69on 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 
     71after click on 'regenerate menu'. 
    7272 
    73 If you want to 'regenerate menu' you should pay attention to status of  
     73If you want to 'regenerate menu' you should pay attention to status of 
    7474'Automatically generate tabs' in your 'Navigation settings' (in Plone 2.1+). 
    7575 
  • qPloneDropDownMenu/branches/plone4/trunk/skins/qPloneDropDownMenu/drop_down.css

    r2182 r2183  
    1 /* <dtml-with base_properties> (do not remove this :) */ 
    21/* <dtml-call "REQUEST.set('portal_url', portal_url())"> (not this either :) */ 
    32 
    43body { 
    5   behavior:url("&dtml-portal_url;/csshover.htc"); 
     4  behavior:url("csshover.htc"); 
    65} 
    76 
     
    1615 
    1716#portal-globalnav li { 
    18         margin: 0;   
     17        margin: 0; 
    1918        padding: 0; 
    20         border: 0;  
     19        border: 0; 
    2120        display: inline; 
    2221        float: left; 
     
    6968        visibility: visible; 
    7069} 
    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 { 
    7271        visibility: hidden; 
    7372} 
     
    8786#portal-globalnav .csshover ul li ul li a:hover, 
    8887#portal-globalnav .csshover ul li ul li:hover a { 
    89         color: &dtml-globalFontColor;; 
     88        color: #436976; 
    9089} 
    9190 
     
    102101 
    103102#portal-globalnav .csshover ul li:hover ul li:hover ul  a { 
    104         color: &dtml-globalFontColor;; 
     103        color: #436976; 
    105104} 
    106105 
     
    121120#portal-globalnav ul li.selected a, 
    122121#portal-globalnav .csshover ul li a:hover { 
    123         background-color:&dtml-globalBackgroundColor;; 
    124         color:&dtml-globalFontColor;; 
     122        background-color:#436976; 
     123        color:#436976; 
    125124} 
    126125 
    127126#portal-globalnav .csshover ul li:hover ul { 
    128127        margin:0; 
    129         border: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;; 
    130         background-color: &dtml-backgroundColor;; 
     128        border: 1px solid #8cacbb; 
     129        background-color: White; 
    131130        overflow:visible; 
    132131} 
     
    138137 
    139138#portal-globalnav .csshover ul li:hover ul li a { 
    140         color: &dtml-globalFontColor; !important; 
     139        color: #436976 !important; 
    141140        margin:0; 
    142141        line-height:normal; 
     
    160159* html .ieVisible {display: block;} 
    161160 
    162  
    163 /* </dtml-with> (do not remove this either :) */ 
  • qPloneDropDownMenu/branches/plone4/trunk/skins/qPloneDropDownMenu/prefs_dropdownmenu_edit_form.cpt

    r372 r2183  
    3535 
    3636    <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" > 
    4041 
    4142      <div class="formControls" align="right" 
    42            tal:define="process_creation request/process_creation|nothing;"> 
     43           tal:define="process_creation request/process_creation|string:"> 
    4344          <input class="context" 
    44                  tabindex="" 
     45                 tabindex="1" 
    4546                 type="submit" 
    4647                 value="Regenerate Menu" 
    4748                 name="form.button.Regenerate" 
    48                  i18n:attributes="value" 
    49                  tal:attributes="tabindex tabindex/next" /> 
     49                 i18n:attributes="value" /> 
    5050      </div> 
    5151 
    5252      <dl class="portalMessage warning" 
    53           tal:condition="not: portal/portal_properties/dropdownmenu_properties/menu|nothing"> 
     53          tal:condition="not:menu"> 
    5454        <dt>Warning</dt> 
    5555        <dd> 
     
    6363          <label for="menu" i18n:translate="label_portaltabs">Portal tabs</label> 
    6464          <div class="formHelp" i18n:translate="help_portaltabs_edit">Here you can change your portal tabs.</div> 
    65           <textarea cols="80"  
     65          <textarea cols="80" 
    6666                    rows="20" 
    67                     tabindex="" 
     67                    tabindex="2" 
    6868                    name="menu" 
    6969                    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> 
    7272      </div> 
    7373 
     
    7575           tal:define="process_creation request/process_creation|nothing;"> 
    7676        <input class="context" 
    77                tabindex="" 
     77               tabindex="3" 
    7878               type="submit" 
    7979               value="Save" 
    8080               name="form.button.Save" 
    81                i18n:attributes="value" 
    82                tal:attributes="tabindex tabindex/next" /> 
     81               i18n:attributes="value" /> 
    8382      </div> 
    8483 
  • qPloneDropDownMenu/branches/plone4/trunk/utils.py

    r1140 r2183  
    77 
    88from Products.CMFCore.utils import getToolByName 
    9 from Products.CMFPlone.migrations.migration_util import safeEditProperty 
     9try: 
     10    # Plone 4 
     11    from plone.app.upgrade.utils import safeEditProperty 
     12except: 
     13    from Products.CMFPlone.migrations.migration_util import safeEditProperty 
     14 
    1015from Products.CMFCore.Expression import Expression, createExprContext 
    1116 
     
    3237                                    name=u'plone_context_state') 
    3338    actions = context_state.actions() 
     39    if type(actions) == dict: 
     40        # Plone 4 
     41        actions = actions['portal_tabs'] 
     42         
    3443    portal_tabs_view = getMultiAdapter((site, site.REQUEST), 
    3544                                       name='portal_tabs_view') 
Note: See TracChangeset for help on using the changeset viewer.