掲示板

Dockbar Add application in popup (Liferay6.2 EE)

thumbnail
9年前 に Ankit Pancholi によって更新されました。

Dockbar Add application in popup (Liferay6.2 EE)

Junior Member 投稿: 78 参加年月日: 10/01/07 最新の投稿
I am trying to implement Add Application (portlet) feature in popup and instead not use Dockbar + Add application feature, So I referred add_application.jsp and created similar jsp which I am calling via aui popup, for now I am just displaying a particular portlet cateogry say Wiki.

But there seems to be some AUI issue while using following script, Please guide me through what am I missing here.

<aui:script use="liferay-dockbar-add-application,liferay-dockbar-portlet-dd">
    var searchApplication = A.one('#<portlet:namespace />searchApplication');

    var addApplication = new Liferay.Dockbar.AddApplication(
        {
            focusItem: searchApplication,
            inputNode: searchApplication,
            namespace: '<portlet:namespace />',
            nodeList: A.one('#<portlet:namespace />applicationList'),
            nodeSelector: '.drag-content-item',
            selected: !A.one('#<portlet:namespace />addApplicationForm').ancestor().hasClass('hide')
        }
    );

    addApplication.plug(
        Liferay.Dockbar.PortletDragDrop,
        {
            on: {
                dragEnd: function(event) {
                    addApplication.addPortlet(
                        event.portletNode,
                        {
                            item: event.appendNode
                        }
                    );
                }
            },
            srcNode: '#<portlet:namespace />applicationList'
        }
    );
</aui:script>




there is one liferay wiki link for similar feature but its for older liferay version http://www.liferay.com/community/wiki/-/wiki/Main/Link+to+Dockbar

添付ファイル:

thumbnail
9年前 に Olaf Kock によって更新されました。

RE: Dockbar Add application in popup (Liferay6.2 EE)

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Please link this question to all other places where you asked it as well, so that we have a chance to see if there's an answer already.

Remember to link not only from here to there, but also in reverse.
thumbnail
9年前 に Ankit Pancholi によって更新されました。

RE: Dockbar Add application in popup (Liferay6.2 EE)

Junior Member 投稿: 78 参加年月日: 10/01/07 最新の投稿
Sure Olaf emoticon

Same question is also posted at Stack Overflow, link: http://stackoverflow.com/questions/28147775/dockbar-add-application-in-popup-liferay6-2-ee