6.0.0-alpha10
5/14/25

[#6102] Drag & Drop portal
Summary Drag & Drop portal
Queue Horde Base
Queue Version HEAD
Type Enhancement
State Assigned
Priority 1. Low
Owners duck (at) obala (dot) net
Requester duck (at) obala (dot) net
Created 01/11/2008 (6333 days ago)
Due
Updated 01/12/2010 (5601 days ago)
Assigned 02/17/2008 (6296 days ago)
Resolved
Milestone
Patch No

History
01/12/2010 11:55:22 PM CVS Commit Comment #18 Reply to this comment
Changes have been made in Git for this ticket:

add drag-n-drop portal code from #6102

  create mode 100644 drag_n_drop_portal/block.php
  create mode 100644 drag_n_drop_portal/index.php
  create mode 100644 drag_n_drop_portal/js/portal.js
  create mode 100644 drag_n_drop_portal/js/portal_edit.js
  create mode 100644 drag_n_drop_portal/js/src/portal.js
  create mode 100644 drag_n_drop_portal/js/src/portal_edit.js
  create mode 100644 drag_n_drop_portal/lib/Block/Layout/View/js.php
  create mode 100644 drag_n_drop_portal/params.php
  create mode 100644 drag_n_drop_portal/save.php
  create mode 100644 drag_n_drop_portal/select.php
  create mode 100644 drag_n_drop_portal/templates/portal/params.php
  create mode 100644 drag_n_drop_portal/themes/graphics/bottom_left.gif
  create mode 100644 drag_n_drop_portal/themes/graphics/bottom_right.gif
  create mode 100644 drag_n_drop_portal/themes/graphics/delete.png
  create mode 100644 drag_n_drop_portal/themes/graphics/edit.png
  create mode 100644 drag_n_drop_portal/themes/graphics/minus.png
  create mode 100644 drag_n_drop_portal/themes/graphics/plus.png
  create mode 100644 drag_n_drop_portal/themes/graphics/redbox_spinner.gif
  create mode 100644 drag_n_drop_portal/themes/graphics/reload.png
  create mode 100644 drag_n_drop_portal/themes/graphics/tooltip_bg.png
  create mode 100644 drag_n_drop_portal/themes/graphics/top_left.gif
  create mode 100644 drag_n_drop_portal/themes/graphics/top_right.gif
  create mode 100644 drag_n_drop_portal/themes/screen.css
http://git.horde.org/co.php/drag_n_drop_portal/block.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/index.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/js/portal.js?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/js/portal_edit.js?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/js/src/portal.js?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/js/src/portal_edit.js?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/lib/Block/Layout/View/js.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/params.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/save.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/select.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/templates/portal/params.php?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/bottom_left.gif?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/bottom_right.gif?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/delete.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/edit.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/minus.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/plus.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/redbox_spinner.gif?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/reload.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/tooltip_bg.png?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/top_left.gif?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/graphics/top_right.gif?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
http://git.horde.org/co.php/drag_n_drop_portal/themes/screen.css?rt=horde-git&r=fd089930a1ef4a57d68fd4e8f155e3dc8b06331e
12/04/2008 03:36:37 AM Chuck Hagenbuch Deleted Original Message
 
12/04/2008 03:36:31 AM Chuck Hagenbuch Comment #17 Reply to this comment
For ease of dev going forward, I've added this code to the hatchery. 
Please make any updates there.
02/29/2008 07:16:36 PM Duck Comment #16 Reply to this comment
Changed mlenum types to populate values with JS instead of reloading 
the entire page, fixes setting parameters forblock using mlenum 
parameters. This can be later merged to current portal block code as 
we don't need to reload the entire page, for example to select a 
location in the sunrise block.



I am going to add the ability to remember if a block is collapsed or 
expanded. After that I will create an separate example for testing.
02/25/2008 11:20:53 PM Duck Comment #15 Reply to this comment
Added column management

- Add a new column on the end of the column list

- Move/switch column content left or right

- remove a desired column
02/17/2008 02:23:02 AM Chuck Hagenbuch Comment #14
State ⇒ Assigned
Reply to this comment
I'm theoretically interested, but it's not at the top of my list 
currently. Please do let us know when there are updates, and we'll see 
if it comes up to the top of any other developer's list also.
02/16/2008 11:13:28 AM Duck Comment #13 Reply to this comment
I am just posting a not that developing of customisable js portal is 
not dead. Saw is working on it on our internal svn. Is integrated in 
one of our apps. Unfortunetly, I don't have time to extract a bare 
working example. I will do it when it will be finished or someone will 
show interest of active help in developing.



What we currently can do

- drag & drop boxes

- ajax  block parameter settings

- reload, minimize, maximize block

- customize portal CSS with JS interface

- select a predefined CSS

- edit your css in advanced mode

- select a predefined portal layout
02/01/2008 07:27:46 AM Duck Comment #12
New Attachment: color.png Download
Reply to this comment
We are experimenting even some kind of css customisation.
02/01/2008 04:50:55 AM Chuck Hagenbuch Deleted Original Message
 
02/01/2008 04:50:48 AM Chuck Hagenbuch Comment #11
State ⇒ Feedback
Reply to this comment
Cool. Still some things to work out, but I guess the question now is 
if/how/where to go about integrating this.
01/31/2008 08:07:42 AM Duck Comment #10
New Attachment: dragdrop[3].tgz
Reply to this comment
Starting to look promising, though. Btw, I like the look a lot, but
I'd prefer to see the blocks be styled consistently with the rest of
the current theme - but a theme based on those styles would be very
nice.
Saw (Jan Zagar) patched the code to integrate it with horde themes.
01/18/2008 06:21:43 PM Chuck Hagenbuch Comment #9 Reply to this comment
Yes, the reference error is fixed for me, and now the layout is much 
better too. It seems like the third column is pushed down below the 
first two, though?



One quirk: the expand/collapse graphics seem to have one global state 
- if I collapse a single block, then I see a plus even on blocks that 
are still expanded.



When blocks are added, they don't seem to take up enough vertical space.



The weird bottom column doesn't go away even if I move all blocks from it.



Starting to look promising, though. Btw, I like the look a lot, but 
I'd prefer to see the blocks be styled consistently with the rest of 
the current theme - but a theme based on those styles would be very 
nice.
01/18/2008 06:13:36 PM Chuck Hagenbuch Deleted Original Message
 
01/17/2008 10:27:48 PM Duck Comment #8
New Attachment: dragdrop[2].tgz
Reply to this comment
Maybe I fix the reference error, even my php 5.2.5 with E_ALL does not 
say anything.



As we cannot deal with all undefined index errors from blocks, I 
silenced all getTitle/getContent calls for now. If errors persists 
please copy you firebug response body possibly containing xdebug output.



I know bocks with JS does not work, I take this as reasonable to wait 
till the initiail steps and direction is taken.
01/17/2008 05:06:52 PM Chuck Hagenbuch Comment #7 Reply to this comment
I see some things now; the layout seems a bit scrambled, the 
call-time-pass-by-ref error still needs to be fixed; an undefined 
index error goes by quickly when adding a new block (the block also 
doesn't show up, but I get a js alert box about the block not having 
special parameters); and blocks that load javascript don't work.



I like the hover controls on blocks, but this isn't usable for me yet...
01/17/2008 11:29:20 AM Jan Schneider Deleted Original Message
 
01/17/2008 11:29:14 AM Jan Schneider Deleted Original Message
 
01/17/2008 11:13:18 AM Duck Comment #6
New Attachment: dragdrop[1].tgz
Reply to this comment
Paths fix. Should work now. At least  I tested with FF and Opera on Linux.
01/17/2008 04:02:37 AM Chuck Hagenbuch Comment #5
Assigned to Duck
State ⇒ Assigned
Reply to this comment
I see the same things Jan reported. The "Xilinus is undefined" errors 
prevent blocks from being added. Looks briefly promising up to that 
point though. :)
01/17/2008 12:10:52 AM Jan Schneider Comment #4 Reply to this comment
I get a lot of undefined Xilinus js errors, and a 
call-time-pass-by-reference error in lib/Block/Layout/View/js.php
01/14/2008 04:58:36 AM Chuck Hagenbuch Comment #3
State ⇒ Accepted
Reply to this comment
I'm hoping to have a look at this within a few days but haven't been 
able to so far - sorry for the delay. Bad weekend for getting stuff 
done.
01/12/2008 11:45:47 AM Duck Comment #2
New Attachment: portal_edit.js
Reply to this comment
Fix setting parameters. Still have problem with block that have 
trackchange actions in parameters but I am not going to solve it 
before receiving some feedback.
01/11/2008 12:48:21 PM Duck Comment #1
Priority ⇒ 1. Low
State ⇒ New
New Attachment: dragdrop.tgz
Queue ⇒ Horde Base
Summary ⇒ Drag & Drop portal
Type ⇒ Enhancement
Reply to this comment
Proposal of drag & drop portal. Extract files in your /horde directory 
ang go to your http://localhost/horde/dragdrop/.



- add block with ajax calls, redbox is called to select a box and its 
parameters

- managa portal without saving and data till you click "save"

- reload, minimize, maximize block



JS Script used.

http://blog.xilinus.com/2007/9/4/prototype-portal-class-2


Saved Queries