[LRA-33] Implement the Tout porlet Created: 14/Jan/14 Updated: 28/Mar/14 Resolved: 28/Mar/14 |
|
| Status: | Resolved |
| Project: | Liferay Apps |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | mcalvo | Assignee: | mcalvo |
| Resolution: | Completed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The functionality of the portlet was discussed with Alaaeldin on Jan 13th. This portlet will:
+ Present a web content article in a modal panel. + It will show 3 buttons: No Thanks: will close the panel and will store in a database table a record that states that the user doesn't want to be shown the article again. Remind me Later: will close the panel and will store in a database table a record that states that the user wants to be reminded later about this. Know more: will open a browser window with the configured URL. + The portlet will allow the following configuration: Know more URL Web content article to display Days before remind again + It needs to be an invisible static portlet. + The portlet configuration should be in the control panel. It needs to be a global configuration, doesn't have to be a per site configuration. The Tip of the day portlet is similar to this, you might want to check it as a starting point. But the Tip of the day is in the dock bar, this portlet should be a static invisible portlet. You can contact Juan Carrillo if you have any question or escalate it to Shagul. |
| Comments |
| Comment by mcalvo [ 23/Jan/14 ] |
| This app has been renamed to Tout, please change the code to reflect the new name, but don't change the SVN project name. |
| Comment by mcalvo [ 24/Jan/14 ] |
|
Additionally once the code is ready, remember to Enable the Security Manager, following the steps outlined here: http://wiki.rivetlogic.com/display/Liferay/Enabling+Security+Manager+for+Liferay+plugins |
| Comment by Ronny Vargas [ 14/Feb/14 ] |
|
pending or requested changes:
tout pop-up -the 3 buttons must be always visible. -on close from X in the corner, is the same as "remind me later" -window must resize to fit content control panel -fields validation -eliminate articleID, add siteName -add an option to see the article content, like a preview article selection popup -paginate results -remove articleID, groupId -show group/Site name on the first column -remove "add article" button, execute action on "Select" -add a column with a link to show the content of the article sorting, at least by name and siteName |
| Comment by mcalvo [ 21/Feb/14 ] |
|
Also for any .java, .jsp or .js file that is AUTOGENERATED by Liferay AND that we HAVE MODIFIED, ADD THE FOLLOWING line above Liferay's copyright disclaimer: /* Copyright (c) 2014 Rivet Logic Corporation. All rights reserved. */ /** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under *.... */ |
| Comment by mcalvo [ 21/Feb/14 ] |
|
For any .js, .java or .jsp generated that was generated by Rivet Logic add this disclaimer: /** * Copyright (C) 2005-2014 Rivet Logic Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; version 3 * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ |
| Comment by Ronny Vargas [ 05/Mar/14 ] |
|
4 issues pending: ---------------for the pop-up in the main site page------------ 1 -> on .../tout-portlet/docroot/js/main.js: line 77 the event for closing the tout pop-up, should send a "remind me later" action, same as the "remind me later button", the code is made but it was not working on the latest testing. ---------------for control-panel -> (configuration) tout -> select article------------ 2 -> on .../tout-portlet/docroot/WEB-INF/src/com/rivetlogic/portlet/ToutConfigPortlet.java: line 122 use ActionRequest to get the data, instead of extracting the UploadPortletRequest, follow this with Charles, he had to fix this same issue for the Announcer portlet. 3 -> on .../tout-portlet/docroot/js/control-panel/main.js assign event using delegates, like in lines 146-149. also event for the "select" button and event for the "add article" button(submit) should all be executed from the "select" button, and the "add article" button, will be removed. 4 -> security is generated in .../tout-portlet/docroot/WEB-INF/liferay-plugin-package.properties but is not enabled, if enabled, a security error is produced when opening the article selector pop-up, apparently is related to the dynamic query in: .../tout-portlet/docroot/html/control-panel/articleSelector.jsp: line 46 |
| Comment by mcalvo [ 10/Mar/14 ] |
| Check with Christopher, what is the status of this. He has the latest code. |
| Comment by Christopher Jimenez [X] (Inactive) [ 11/Mar/14 ] |
|
The latest code is in the SVN, and there are a couple of issues 1) When the user select an article in the configuration section the form data is lost except the article selected 2) When the user click on "see more" button it keeps showing the article like the state was not changed @Katalina if you need any help, please contact me! |
| Comment by Katalina Marcos [ 28/Mar/14 ] |
|
Completed.
IE9 issue was fixed by increasing size of dialog windows, to avoid reload incompatible styles in the parent window. Also the documentation is completed ( |