[
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.