掲示板

No Add Application or Layout button

thumbnail
13年前 に A Leeman によって更新されました。

No Add Application or Layout button

Junior Member 投稿: 29 参加年月日: 11/02/24 最新の投稿
Hi there,

I wanted to check out Social Office 1.5b, so I installed the windows version.
Contrary to the manual I dont't see the links at the top to add applications or change the layout of the current (my home) page, logged in as admin.
I added users and found that the links are missing in their homepages as well.

I checked the forums and other sources but found no info on this.
Am I missing the obvious here?

Thanks in advance,
Arne.
thumbnail
13年前 に Ryan Park によって更新されました。

RE: No Add Application or Layout button

Regular Member 投稿: 120 参加年月日: 07/08/28 最新の投稿
Hi A Leeman,

Currently Social Office 1.5b does not support adding applications. However, this feature was added in Social Office 1.6 Enterprise Edition and the next Community Edition will have this feature.

May I ask which document you were reading so I can have it corrected?

I'm sorry for the confusion.

-Ryan
thumbnail
13年前 に A Leeman によって更新されました。

RE: No Add Application or Layout button

Junior Member 投稿: 29 参加年月日: 11/02/24 最新の投稿
Hi Ryan,

Thanks for the swift reply.

I read "working-smarter-so" (pdf) by Richard L. Sezov, Jr. et all.
Found it somewhere on the internet.

I'm sorry to hear SO 1.5b is restricted like this.
(I know you heard that a lot ;-))

We were planning to use SO (instead of L6) in a community project because it fits our needs really well. At least as a starting point. I read that customizing L6 to act like SO won't work unless I make my own build, which is beyond my skills sorry to say.

Is there maybe a way to patch SO 1.5b locally to add these features adhoc?
Or is the new community version of SO imminent?
Or could I join up as betatester for it?

Point is: I would rather not have to dig deep into L6 technically to get the kind of integration done like SO offers out of the box.

Hope you can help me with more info.

Arne.

ps. I really like LifeRay!
thumbnail
13年前 に Ryan Park によって更新されました。

RE: No Add Application or Layout button

Regular Member 投稿: 120 参加年月日: 07/08/28 最新の投稿
Hello!

Unfortunately there isn't a patch that I am aware of that will bring this functionality to 1.5b short of getting the 1.6EE version. But the next CE version will be Social Office 2.0 and it brings a lot more user customizable items. We hope to have it released this Summer in late June or early July. I hope this will fit in your timeline.

Sorry for the late reply!

- Ryan
thumbnail
13年前 に A Leeman によって更新されました。

RE: No Add Application or Layout button

Junior Member 投稿: 29 参加年月日: 11/02/24 最新の投稿
Hi Ryan,

Thanks for your answer.
As it is, I find myself waiting for the cool features of the new release, as they would fit our usecase perfectly. But I guess this it what you hear all the time ;-)

Our timeline is pretty tight, so for now we will have to work around a few things in LF6.06, like making adjustments to the directory portlet etc.

But maybe you could get me some information on another thing I'm struggling with?
Is there a simple portlet available for LF6.06 which sole purpose is to show an active portlet (on a hidden page) in a new window like a popup. I found stuff about such functionality in the forums but actually have no clue how to put this in a view.jsp with the right taglibs and imports.

I'm sorry to bother you like this but I'm in a dead end here. I know it's off-topic but I hope you find the time to point me in the right direction...

Keep up the good work!
Regards,

Arne.
thumbnail
13年前 に Ryan Park によって更新されました。

RE: No Add Application or Layout button

Regular Member 投稿: 120 参加年月日: 07/08/28 最新の投稿
Hi Arne,

Which portlet are you attempting to open in a new window?

Edit, with example:

For example if you're trying to open a Web Content article in a new window you can simply invoke the URL below in a standard anchor tag in another Web Content article.

http://www.mydomain.com/c/journal/view_article_content?groupId=10169&articleId=10730&version=1.0


Where the groupId, articleId, and version number should belong to the article you're attempting to find.

You can find these ID's in the control panel. Use the Web Content tab to find the appropriate article Id and version number and the Community tab to find the group number.

Hope this helps,
Ryan
thumbnail
13年前 に A Leeman によって更新されました。

RE: No Add Application or Layout button

Junior Member 投稿: 29 参加年月日: 11/02/24 最新の投稿
Hi Ryan,

Thanks for the info.

What we are trying to achieve is the following:

For senior users we would like their homepage interface to be really simple by presenting a number of big buttons for basic functions like calendar, directory etc. These buttons would be small portlets that each show a 121x121 px clickable image. If you click the image the actual portlet (like calendar) will show in a popup(window). when you close the popup, your focus is back on the page with the big buttons.

I found code fragments in the forums and wiki to accomplish this, like:

http://www.liferay.com/community/forums/-/message_boards/message/6206616
http://www.liferay.com/community/forums/-/message_boards/message/7074351#_19_message_6249929
and
http://www.emforge.net/web/akakunin/blogs/-/blogs/display-portlet-in-ajax-popup:-liferay-5-&-6-versions

I used a sample JSP portlet and the third link above from the community and put the code, taglibs etc. in the view.jsp as a test. It deploys but when run Liferay complains about missing entities. This is my test view.jsp:

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<%@ taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>

<%@ page import="javax.portlet.MimeResponse" %>
<%@ page import="javax.portlet.PortletConfig" %>
<%@ page import="javax.portlet.PortletContext" %>
<%@ page import="javax.portlet.PortletException" %>
<%@ page import="javax.portlet.PortletMode" %>
<%@ page import="javax.portlet.PortletPreferences" %>
<%@ page import="javax.portlet.PortletRequest" %>
<%@ page import="javax.portlet.PortletResponse" %>
<%@ page import="javax.portlet.PortletSession" %>
<%@ page import="javax.portlet.PortletURL" %>
<%@ page import="javax.portlet.RenderRequest" %>
<%@ page import="javax.portlet.RenderResponse" %>
<%@ page import="javax.portlet.ResourceURL" %>
<%@ page import="javax.portlet.UnavailableException" %>
<%@ page import="javax.portlet.ValidatorException" %>
<%@ page import="javax.portlet.WindowState" %>

<portlet:defineObjects />

<liferay-theme:defineObjects />

<%
WindowState windowState = null;
PortletMode portletMode = null;

PortletURL currentURLObj = null;

if (renderRequest != null) {
windowState = renderRequest.getWindowState();
portletMode = renderRequest.getPortletMode();

currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
}
else if (resourceRequest != null) {
windowState = resourceRequest.getWindowState();
portletMode = resourceRequest.getPortletMode();

currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
}

String currentURL = currentURLObj.toString();
//String currentURL = PortalUtil.getCurrentURL(request);
%>

<portlet:renderURL var="somePageURL" windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
<portlet:param name="jspPage" value="/popup.jsp"/>
<portlet:param name="redirect" value="<%= currentURL %>"/>
</portlet:renderURL>

<script type="text/javascript">
function showPopup() {
AUI().use('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) {

var dialog = new A.Dialog({
title: 'Popup Title',
centered: true,
draggable: true,
modal: true
}).plug(A.Plugin.IO, {uri: '<%= somePageURL %>'}).render();

dialog.show();

});
}

<a href="javascript: showPopup(); ">Click here to show popup </a>


In other words: I have proper popup code linking to another jsp but the rest of my view.jsp is sub par ;-). So what would be the correct JSP for this with the right taglibs etc.?

After this first test I wanted to proceed with the code in the first two links that would actually open a portlet (like Calendar) in exclusive mode in a popup, which is my actual goal.

If you could point out why the jsp is not working or even supply me with a basic working example of a portlet/view.jsp that opens another portlet in a popup window, I would be very grateful.

I hope you can put me in the right direction.

Regards,

Arne.
thumbnail
13年前 に Ryan Park によって更新されました。

RE: No Add Application or Layout button

Regular Member 投稿: 120 参加年月日: 07/08/28 最新の投稿
Hi Leeman,

I see you have most of the code in place to get your portlet running. To link to other portlets in your portlet I would use the following:

import com.liferay.portal.util.PortletKeys;


<liferay-portlet:renderurl portletname="<%= PortletKeys.CALENDAR %>" windowstate="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
	<liferay-portlet:param name="struts_action" value="/calendar/view" />
</liferay-portlet:renderurl>


I believe this will work.
12年前 に marcia vigar によって更新されました。

RE: No Add Application or Layout button

New Member 投稿: 1 参加年月日: 11/09/21 最新の投稿
The page which describes how to add applications and layouts to social office is the documentation page:
http://www.liferay.com/documentation/social-office/1.5/user-guide/-/ai/site-applications
hth!
thumbnail
11年前 に Saranya Sethurajan によって更新されました。

RE: No Add Application or Layout button

Junior Member 投稿: 57 参加年月日: 09/10/08 最新の投稿
Hi,

There is dock.vm available under so-theme, but it is not called in portal_normal.vm. Try to call dock.vm in portal_normal.vm, so that Add Application and Manage Page, Theme Changes will start working fine.