Changeset 1239
- Timestamp:
- 09/11/08 10:02:55
- Files:
-
- qSiloGroup/trunk/Extensions/Install.py (modified) (2 diffs)
- qSiloGroup/trunk/README.txt (modified) (1 diff)
- qSiloGroup/trunk/config.py (modified) (1 diff)
- qSiloGroup/trunk/configure.zcml (added)
- qSiloGroup/trunk/profiles (added)
- qSiloGroup/trunk/profiles/default (added)
- qSiloGroup/trunk/profiles/default/metadata.xml (added)
- qSiloGroup/trunk/profiles/default/portlets.xml (added)
- qSiloGroup/trunk/skins/qSiloGroup/portlet_navtree_macro.pt (modified) (4 diffs)
- qSiloGroup/trunk/skins/qSiloGroup/silo_nav.pt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qSiloGroup/trunk/Extensions/Install.py
r1238 r1239 48 48 for ptype in types_tool.objectValues(): 49 49 if ptype.getId() == 'Folder': 50 action = ptype.getActionById( 'edit_silo_navigation', default=None)51 if action is None:50 action_obj = ptype.getActionObject('object/edit_silo_navigation') 51 if action_obj is None: 52 52 out.write( ' Added Silo Navigation tab for %s\n' % ptype.getId() ) 53 ptype.addAction( 'edit_silo_navigation' 54 , 'Silo Navigation' 55 , 'string:${object_url}/silo_navigation_form' 56 , '' 57 , 'Modify portal content' 58 , 'object' 59 , visible=1 60 ) 53 ptype.addAction('edit_silo_navigation', 54 'Silo Navigation', 55 'string:${object_url}/silo_navigation_form', 56 '', 57 ('Modify portal content',), 58 'object', 59 visible=True) 60 else: 61 action_obj.edit(title=title, action=action, 62 condition=condition, 63 permissions=tuple(permissions), 64 visible=visible) 61 65 def removeActions(self): 62 66 tool = getToolByName(self, 'portal_types') 63 67 for ptype in tool.objectValues(): 64 68 if ptype.getId() == 'Folder': 65 action = ptype.getAction ById( 'edit_silo_navigation', default=None)69 action = ptype.getActionObject('object/edit_silo_navigation') 66 70 if action != None: 67 71 acts = list(ptype.listActions()) … … 71 75 portal_js = getToolByName(self, 'portal_javascripts', None) 72 76 portal_css = getToolByName(self, 'portal_css', None) 73 77 74 78 if portal_js is not None: 75 79 scripts = portal_js.getResourceIds() qSiloGroup/trunk/README.txt
r1238 r1239 1 1 Silo Groups product aims to fill the niche off advance SEO techniquies of content assembling. 2 3 It supports Plone 3 (tested with Plone 3.1.5.1). qSiloGroup/trunk/config.py
r1238 r1239 1 from Products.CMFCore import CMFCorePermissions1 from Products.CMFCore import permissions 2 2 3 VIEW_PERMISSION = CMFCorePermissions.ManagePortal3 VIEW_PERMISSION = permissions.ManagePortal 4 4 5 5 PROJECTNAME = 'qSiloGroup' qSiloGroup/trunk/skins/qSiloGroup/portlet_navtree_macro.pt
r1238 r1239 5 5 viewActions here/portal_properties/site_properties/typesUseViewActionInListings|python:(); 6 6 member context/portal_membership/getAuthenticatedMember|nothing; 7 member_id member/getId|nothing"> 7 member_id member/getId|nothing; 8 plone_view context/@@plone"> 8 9 9 10 <metal:main define-macro="nav_main"> … … 13 14 item node/item; 14 15 useView python:item.portal_type in viewActions; 16 item_icon python:plone_view.getIcon(item); 15 17 isFolderish item/is_folderish|nothing; 16 18 default_page python:isFolderish and item.getObject().getProperty('default_page', '') or ''; … … 20 22 tal:condition="python: bottomLevel <= 0 or level < bottomLevel-1"> 21 23 22 <tal:level define="item_type_class python: 'visualIcon contenttype-' + normalizeString(item.portal_type); 23 item_wf_state_class python: 'state-' + normalizeString(item.review_state);"> 24 <tal:level define="item_wf_state_class python: 'state-' + normalizeString(item.review_state);"> 24 25 25 <div tal:attributes="class item_type_class" 26 tal:define="itemClass string:$item_wf_state_class visualIconPadding;26 27 <div tal:define="itemClass string:$item_wf_state_class; 27 28 itemClass python:test(isCurrent, itemClass + ' navTreeCurrentItem', itemClass);"> 28 29 29 30 <a tal:attributes="href python:test(linkRemote, item.getRemoteUrl, itemUrl); 30 31 title item/Description; 31 class string:$itemClass" 32 tal:content="item/Title"> 33 Selected Item Title 32 class string:$itemClass"> 33 <img width="16" height="16" 34 src="" alt="" 35 tal:condition="item_icon/url" 36 tal:attributes="src item_icon/url; 37 alt item_icon/description; 38 title item_icon/title; 39 width item_icon/width; 40 height item_icon/height;" /> 41 <span tal:replace="item/Title">Selected Item Title</span> 34 42 </a> 35 43 36 44 </div> 37 45 … … 46 54 </metal:main> 47 55 </tal:master> 48 qSiloGroup/trunk/skins/qSiloGroup/silo_nav.pt
r1238 r1239 7 7 charset site_properties/default_charset|string:utf-8"><metal:cache use-macro="here/global_cache_settings/macros/cacheheaders"> 8 8 Get the global cache headers located in global_cache_settings.</metal:cache></tal:cache> 9 <head metal:use-macro="here/header/macros/html_header"> 10 <metal:fillbase fill-slot="base"> 11 <base href="" tal:attributes="href here/renderBase" /> 12 </metal:fillbase> 13 <metal:headslot fill-slot="head_slot"> 14 <tal:comment replace="nothing"> A slot where you can insert elements in the header from a template</tal:comment> 15 </metal:headslot> 16 <metal:styleslot fill-slot="style_slot"> 17 <tal:comment replace="nothing"> A slot where you can insert CSS in the header from a template</tal:comment> 18 </metal:styleslot> 19 <metal:cssslot fill-slot="css_slot"> 20 <tal:comment replace="nothing"> This is deprecated, please use style_slot instead.</tal:comment> 21 </metal:cssslot> 22 <metal:javascriptslot fill-slot="javascript_head_slot"> 23 <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template</tal:comment> 24 </metal:javascriptslot> 9 <head> 10 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" 11 tal:define="charset site_properties/default_charset|string:utf-8" 12 tal:attributes="content string:text/html;;charset=${charset}" /> 13 14 <base tal:attributes="href here/renderBase" /><!--[if lt IE 7]></base><![endif]--> 15 16 <meta name="generator" content="Plone - http://plone.org" /> 17 18 <div tal:replace="structure provider:plone.htmlhead" /> 19 20 <meta tal:define="metatags python:putils.listMetaTags(here).items()" 21 tal:condition="metatags" 22 tal:repeat="keyval metatags" 23 tal:attributes="name python:keyval[0]; 24 content python:keyval[1];" /> 25 26 <!-- Internet Explorer CSS Fixes --> 27 <tal:iefixstart replace="structure string:<!--[if IE]>" /> 28 <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css" 29 tal:content="string:@import url($portal_url/IEFixes.css);"> 30 </style> 31 <tal:iefixend replace="structure string:<![endif]-->" /> 32 33 <link tal:replace="structure provider:plone.htmlhead.links" /> 34 35 <!-- Disable IE6 image toolbar --> 36 <meta http-equiv="imagetoolbar" content="no" /> 25 37 </head> 38 26 39 <body onload="if (parent.adjustIFrameSize) parent.adjustIFrameSize(window);" 27 40 style="min-width: 100px; text-align: left; background-color: #F5F6F6"
