Changeset 197

Show
Ignore:
Timestamp:
01/23/06 08:04:02
Author:
crchemist
Message:

column view in configlet for content types in Plone-2.1 added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qSEOptimizer/trunk/__init__.py

    r196 r197  
    11import Globals 
    22from Products.CMFCore.DirectoryView import registerDirectory 
     3from AccessControl import allow_module 
    34 
    4 registerDirectory('skins', globals()) 
     5allow_module('Products.qSEOptimizer.util.py') 
     6 
    57qSEO_globals = globals() 
     8registerDirectory('skins', qSEO_globals) 
  • qSEOptimizer/trunk/skins/qSEOptimizer/prefs_qseo_setup_form.cpt

    r196 r197  
    4343 
    4444                    <fieldset class="portalTypes" 
    45                               tal:define="portal_types portal/portal_types"> 
     45                              tal:define="portal_types    portal/portal_types; 
     46                                          allTypes        portal_types/listContentTypes; 
     47                                          typeLists       python:modules['Products.qSEOptimizer.util'].createMultiColumnList(context, allTypes, numCols=3, sort_on='title_or_id')"> 
    4648                        <legend i18n:translate="label_content_type_title">Content Types</legend> 
    4749 
     
    5052                            enabled. 
    5153                        </div> 
    52  
    53                         <ul class="configlets"> 
    54                             <li tal:repeat="content_type portal_types/listContentTypes"> 
    55                                 <tal:type define="type python:portal_types.getTypeInfo(content_type); 
    56                                                   name type/getId; 
    57                                                   action python:type.getActionById('seo_properties', default=None)"> 
    58                                     <input type="checkbox" 
    59                                            name="portalTypes:list" 
    60                                            tal:attributes="id name; 
    61                                                            value name; 
    62                                                            checked action"/> 
    63                                     <label tal:content="string:${name}" 
    64                                            tal:attributes="for name">Content Type id 
    65                                     </label> 
    66                                 </tal:type> 
    67                             </li> 
    68                         </ul> 
     54                        <div style="float:left; margin-right: 2em;" tal:repeat="sublist typeLists"> 
     55                            <ul class="configlets"> 
     56                                <li tal:repeat="ptypeInfo sublist"> 
     57                                    <tal:type define="type python:portal_types.getTypeInfo(ptypeInfo); 
     58                                                      name type/getId"> 
     59                                        <input  type="checkbox" 
     60                                                name="portalTypes:list" 
     61                                                tal:attributes="id name; 
     62                                                                value name; 
     63                                                                checked python:type.getActionById('seo_properties', default=None)"/> 
     64                                        <label tal:attributes="for python:type.getId()" 
     65                                               tal:content="type/Title"/> 
     66                                    </tal:type> 
     67                                </li> 
     68                            </ul> 
     69                        </div> 
    6970                    </fieldset> 
    7071