[jira] Created: (OFBIZ-3227) Drag'n'Drop update - add directly in the my portal application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
43 messages Options
123
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3227) Drag'n'Drop update - add directly in the my portal application

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789298#action_12789298 ]

Michael Xu commented on OFBIZ-3227:
-----------------------------------

hi Sascha,

Understand.

If I want to customize this behavior to allow user can drag and drop without going to portlet configuration, how to do it? Look forward to your advice.

Thanks,
Michael

> Drag'n'Drop update - add directly in the my portal application
> --------------------------------------------------------------
>
>                 Key: OFBIZ-3227
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3227
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: specialpurpose/projectmgr
>    Affects Versions: SVN trunk
>            Reporter: Sascha Rodekamp
>            Assignee: Bruno Busco
>             Fix For: SVN trunk
>
>         Attachments: myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2_IEpatch.patch, screen1.gif, screen2.gif, screen3.gif, screenshot-1.jpg
>
>
> Hi,
> Michael ask to add the Drag'n' Drop Feature directly to the myPortal application. So i did :-)
> Beside this, i made a few fixes in the myportal.js.
> I'm looking foward to your review.
> So long
> Sascha

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3227) Drag'n'Drop update - add directly in the my portal application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789318#action_12789318 ]

Sascha Rodekamp commented on OFBIZ-3227:
----------------------------------------

Hi Michael,

hm i think there are two ways to solve your problem.

1)  You create a service that added to every new party an specific portal page in the PortalPage Entity.

2) You edit the showPortalPage.ftl:

line 37 -40 from:
            <#-- DragNDrop is only activated, when the portal Page isn't the Default page -->
            <#if portalPage.originalPortalPageId?has_content><script>setMousePointer("${portlet_index}")</script></#if>
            <#if portalPage.originalPortalPageId?has_content><script type="text/javascript">makeDragable("${portlet_index}");</script></#if>
            <#if portalPage.originalPortalPageId?has_content><script type="text/javascript">makeDroppable("${portlet_index}");</script></#if>

to:
            <script>setMousePointer("${portlet_index}")</script>
            <script type="text/javascript">makeDragable("${portlet_index}");</script>
            <script type="text/javascript">makeDroppable("${portlet_index}");</script>

That should make the portelets Drag & Droppable everytime.
Bu there comes the problem: when a user drag the first time and haven't his own portal page the changes will not be saved. After reloading the page the portlets will shown in default order.
So you have to go to the PortalPageServices.xml and extend the 'updatePortletSeqDragDrop' Service.
 --> if the user changes his page the first time, a user specific portal page have to be created before storing the new portlet order.



> Drag'n'Drop update - add directly in the my portal application
> --------------------------------------------------------------
>
>                 Key: OFBIZ-3227
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3227
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: specialpurpose/projectmgr
>    Affects Versions: SVN trunk
>            Reporter: Sascha Rodekamp
>            Assignee: Bruno Busco
>             Fix For: SVN trunk
>
>         Attachments: myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2_IEpatch.patch, screen1.gif, screen2.gif, screen3.gif, screenshot-1.jpg
>
>
> Hi,
> Michael ask to add the Drag'n' Drop Feature directly to the myPortal application. So i did :-)
> Beside this, i made a few fixes in the myportal.js.
> I'm looking foward to your review.
> So long
> Sascha

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3227) Drag'n'Drop update - add directly in the my portal application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789383#action_12789383 ]

Michael Xu commented on OFBIZ-3227:
-----------------------------------

hi Sascha,

Thanks. I will ask our tech team to follow your idea.

I understand your point why users have to go to configuration before drag&drop in MyPortal. However, per my experience of using other portals as end customer, it seems I can always drag&drop portlets immediately after registration, like liferay, jboss portal, etc.

What's your thought?

regards,
Michael

> Drag'n'Drop update - add directly in the my portal application
> --------------------------------------------------------------
>
>                 Key: OFBIZ-3227
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3227
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: specialpurpose/projectmgr
>    Affects Versions: SVN trunk
>            Reporter: Sascha Rodekamp
>            Assignee: Bruno Busco
>             Fix For: SVN trunk
>
>         Attachments: myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2.patch, myPortalDragNDrop_v2_IEpatch.patch, screen1.gif, screen2.gif, screen3.gif, screenshot-1.jpg
>
>
> Hi,
> Michael ask to add the Drag'n' Drop Feature directly to the myPortal application. So i did :-)
> Beside this, i made a few fixes in the myportal.js.
> I'm looking foward to your review.
> So long
> Sascha

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

123