liferay-6

Get images from Liferay Document Library whose id is stored in separate databse table

时光怂恿深爱的人放手 提交于 2019-12-11 10:52:42
问题 I have an Employee table which stores details of Employees (name,date of birth etc) I have a field in Employee table named fileEntryId which stores the Id of the employee pics which are stored in DL in liferay. What I want to do is if the fileEntryId in Employee matches with fileEntryId of the dlfileEntry table of the Document Library then display the images in the search container along with details from Employee table. How to this? EDITED: I have a little problem here. All the images are

Editing velocity template of Liferay changes not showing or takes a while

匆匆过客 提交于 2019-12-11 09:26:54
问题 I'm currently editing my portal_normal.vm (server/tomcat/webapps/mytheme-theme/templates) testing if I can write on the file and see it on my browser. I tried putting a test comment "<!-- test -->" just to see if I can really write on the file. So I refreshed the file and hope I can see the comment I've added, but there we're none. So I continued refreshing (ctrl+r),\ and viewing the source code for almost an twenty minutes. After a while when I tried viewing it again it reflected in my

LifeRay form validation using Alloy UI

喜你入骨 提交于 2019-12-11 08:37:10
问题 I use LifeRay 6.1.2. And it have built-in Alloy UI 1.5. framework. So I try to reproduce this form validation example (I copied all code), but it don't work as expected (error labels in DOM, but they are don't visible in form (see EDIT1)): Expected result is (you can try yourself live example using link provided above): Where is problem? How to solve it? Thanks. EDIT1: After some research, I realized that if I delete aui-form-validator-message CSS class from error message's DIV tag (it

Liferay: customize CKEditor

假装没事ソ 提交于 2019-12-11 07:34:39
问题 I try to customize shortcuts keys in Liferay 6, in the CKEditor. I made a hook, and added this to the file html/js/editor/ckeditor/ckconfig.jsp: CKEDITOR.config.keystrokes = [ [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], [

Liferay 6.2 Search result on separate page

与世无争的帅哥 提交于 2019-12-11 07:28:06
问题 Is it possible to redirect search-Result (portlet: $theme.journalContentSearch() ) to my " http://localhost/search " page? I need this, because on home-page I don't have any portlets-placeholder, and after submit search-form, I see nothing. If I use this function on other page, it work fine, but stay in same page where I do form-submit, e.g. "/contact?****blablabla****" /* new */ long searchPlid = plid; System.out.println(TAG + "plid: " + plid); //My Hidden search page Layout searchPage =

Error occures when deploying theme to liferay portal. “No theme found for specified theme id .”

半世苍凉 提交于 2019-12-11 06:30:03
问题 I've create sample theme, i.e. custom.css according to liferay tutorial, and don't know why my theme is not deployed, in the log file is the next content: "No theme found for specified theme id . Returning the default theme." And in the themes in "Manage->Page->Look and Feel" there is no my theme 回答1: This warning messages will be displayed when you have already applied a theme to the site(Community) but That theme is now undeployed currently. This can happen due to the recent changes that

How to override portal-impl jar classes in Liferay ext-plugin

丶灬走出姿态 提交于 2019-12-11 06:25:37
问题 I want to override two portal-impl.jar classes NtlmFiler.java and NtlmPostFilter.java , I have created an ext-plugin project and placed my custom written classes in ext-impl/src but I am unable to configure my spring.xml file to use my newly written classes instead of portal-impl classes, maybe i am totally wrong about doing it this way. My ext-spring.xml code is : <?xml version="1.0" encoding="UTF-8"?> <beans> <bean id="com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter" class="com

Liferay and more instances

陌路散爱 提交于 2019-12-11 05:06:41
问题 I have a simple question about Liferay and more instance of it. I have my Liferay and I can reach it by myhost.com:8080. Now I would to create an other instance in Liferay Liferay - Portal Instances but I did not understand how I can reach my different instances by browser... And, How can I configure my different instances about LDAP, CAS... (I would to use the same configuration but if it is not possibile I can copy same configuration for any instances) 回答1: A new instance of Liferay

How to redirect search page liferay 6.2?

北城余情 提交于 2019-12-11 03:59:42
问题 Is it possible to redirect search-Result (portlet: $theme.journalContentSearch() ) to another my page (example "/search")? In .../taglib/ui/search/start.jsp I have tried to change: portletURL.setParameter("redirect", currentURL); in portletURL.setParameter("redirect", "/results"); But didn't work. Have you any suggestion? Thanks. 回答1: I know, this is an outdated question. But, today I had similar task to do and here are my findings. Unfortunately, there isn't any configuration option

suggestion text field like — google suggestion - using AJAX/Jquery

非 Y 不嫁゛ 提交于 2019-12-11 01:19:22
问题 When I enter the letter in text filed and if it has a match in the database, it should display all the matched words. When I enter some text in the Travelfrom text field like: A then I should get the all records which start with A when I enter the Travelfrom(text field) it will auto complete it , It should be like Google suggestion. How to do it in AJAX. Now: I retrieve the Travelfrom data from the database. Now when I entered first letter in travelfrom textfield, it should check and its