Questions tagged [liferay-hook]
47 questions
3
votes
1 answer
How can I add a new language in Liferay 7?
My problem is how to add new language like thailand language in liferay 7.
When I inspect the existing flag I see that the image is not png but it is svg, but I can't add new language with icon.
In this page.jsp I see that the constructor of image…

jdaida sedki
- 41
- 4
3
votes
2 answers
Display custom error message from a liferay hook service after an exception
I am overriding the addArticle and updateArticle methods of JournalArticleServiceImpl using a Hook. I am checking for all articles with a particular ddmStructureKey and that the current article has a unique value in a particular field.
I am throwing…

Philip John
- 5,275
- 10
- 43
- 68
3
votes
1 answer
Making code in Liferay Model Listeners Asynchronous (using concurrency)
The Problem
Our liferay system is the basis to synchronize data with other web-applications.
And we use Model Listeners for that purpose.
There are a lot of web-service calls and database updates through the listeners and consequently the particular…

Prakash K
- 11,669
- 6
- 51
- 109
2
votes
1 answer
authentication in liferay without login hook
I have a problem, I get the user and password of a view and I check if this data is correct in the data of liferay, when it's correct my method return 1 if the validation is true, but I don't know how to make the successful login in liferay, this is…
2
votes
1 answer
Liferay's marketplace-portlet not deployed correctly in version 6.2?
I have created a hook for Liferay 6.1 without errors and now I am trying to do the same for version 6.1
When I deployed the hook in my bundled version, I got the next logs:
16:02:36,799 INFO …

King Midas
- 1,442
- 4
- 29
- 50
1
vote
1 answer
liferay-maven-plugin + direct-deploy configuration for DXP
I'm currently on Liferay 6.2 (with Tomcat), and I can configure the liferay-maven-plugin in my Liferay hook project's maven pom.xml as below, in order to pre-process my hook WAR for hot deployment (using the direct-deploy goal of the…

Vasan
- 4,810
- 4
- 20
- 39
1
vote
0 answers
liferay dxp 7.0 hook, new jsp file
have a problem with my liferay DXP, on 6.2 i have a hook that can display after a login if some condition occurred,now i want do the same with my hook on DXP.
on 6.2 have this tree :
my-hook -> main -> webapp -> custom_jsps -> folder1 -> folder2 ->…

KhairiB
- 45
- 1
- 8
1
vote
1 answer
Where is the Look and Feel JSP file?
There is this Look and Feel option in every portlet settings:
I want to create hook for this tab. Which JSP file do I have to override?
How can I add my custom field in this tab (like Use Custom Title)?

Dhruv Pandey
- 482
- 6
- 18
1
vote
0 answers
override serve resource of user account in Liferay using hooks
I am using Liferay 6.2. I made a hook to add some extra fields in User-My Acccount page. On key press of these fields, an ajax call needs to be invoked. I read lifery service override and trying to follow the same approach: It works for updating…

user596502
- 417
- 3
- 10
- 22
1
vote
1 answer
Liferay 6.2 search portlet configuration for all pages
i've implemented an hook for liferay CE 6.2GA4 that adds a search field inside the dockbar, using tag inside the view_user_panel.jspf file.
After that i've deployed the standard search portlet and implemented a custom…

Emanuele Righetto
- 720
- 8
- 19
1
vote
2 answers
Liferay: Page to portlet mapping
I have a requirement in liferay portal to allow user to add some specific portlets on a particular page. Same can be done in 2 ways:
This will require some custom code to be plugged in add panel code
create a custom portlet which will be present on…

Varun
- 5,001
- 12
- 54
- 85
1
vote
0 answers
how to recuperate the list of the potlet created in liferay 6.2 using java
My problem is to recuperate the list of the portlet created in liferay 6.2
without display the default portlet in liferay 6.2.
i try this code
<%
boolean includeSystemPortlets = false;
…

jdaida sedki
- 41
- 4
1
vote
1 answer
how to change the icon of default porlet language in liferay 6.2
In Liferay you can setup (portal-)languages which are available to sites.
In control panel for a site, you can choose which of these languages should be available to a user of that site.
I want to change the flag of the default language porlet in…

sedki
- 25
- 5
1
vote
2 answers
Liferay Hook - Manipulation request parameters
I ran into a little problem with a hook. Szenario:
The Hook should override struts action /document_library/edit_file_entry which is called, whenever a user uploads a document into the document library.
The goal is to check the title of the…

FeinesFabi
- 1,147
- 2
- 12
- 25
1
vote
2 answers
How to change liferay language properties file in hook
I've added a few items to the registration portal. Now I want to label them for the specific language. Liferay like.
in liferay hook :
content/Language_en.properties
…

ontashkal
- 168
- 1
- 16