#1 — Can't reorder portlets that are assigned to a default page.

by Winn King last modified Aug 17, 2011 08:28 PM
State Unconfirmed
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by Winn King
Submitted on Feb 07, 2011
Responsible
Target release:
If portlets are assiged to, for instance, the home page only by going to http:///mysite/front-page/@@manage-portlets, it is not possible to reorder those portlets. No error message. You can drag them to different positions. But when you view the page, the order hasn't changed.
Added by Michael Graf on Feb 11, 2011 04:22 PM
I can confirm this Bug.

I cant't move portlets assigned to a page, but portlets assigned to a folder (incl. frontpage) works obviously

Traceback
-------------
2011-02-11 17:10:20 ERROR Zope.SiteErrorLog 1297440620.730.699233709397 http://
dit.fh-krems.ac.at/de/international/akademische-mobilitaetsprogramme/spmMovePorletDelta
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Solgema.PortletsManager.portlets.kss, line 37, in spm_move_portlet_dela
ValueError: list.index(x): x not in list

-------------
Plone 4.0.2
Products.LinguaPlone 4.0.2
Solgema.PortletsManager 0.7
Added by Peer on Aug 17, 2011 08:28 PM
I solved this issue as follows:
Copy /<site>/portal_skins/solgemaportletsmanager/spmdragdropreorder.js into portal_skins\custom and modify line 170 (compare old and new code snippet).

Change line 170 by deleting this part: .substr('portlet'.length)

Old code snippet
168 // Strip off id prefix
169 var args = {
170 portlethash: dragging.attr('id').substr('portlet'.length)
171 };
---
New code snippet
168 // Strip off id prefix
169 var args = {
170 portlethash: dragging.attr('id'))
171 };
--
The dragable character :: will become up / down icons after refreshing the portlet configuration screen.

No responses can be added.