I'm trying to implement the Form Runner Proxy Portlet into my Liferay portal but I have a problem.
In Orbeon, I have an application named "CUS07" and two forms named "CUS07" and "Test" (and Orbeon default app and forms).
I set the init parameters in "portlet.xml" to display "CUS07/CUS07" form by default.
It's working well. But when I go to the "Preferences" page in the portlet configuration and I set "Form Runner app name" to "CUS07" and "Form Runner form name" to "CUS07" and click on "Save" button, nothing change. The form displayed is still "Test" and when I go back to "Preferences" page, the fields are still filled with init parameters set in "portlet.xml".
I tried with different datas in portlet.xml and "Preferences" page (with default Orbeon forms and app), but it does not change anything, I can not override init parameters with portlet preferences.
Nothing is logged in catalina.out.
Is it a known issue or what can I try to find the reason of this problem ?
Thank you :)
Environment :
- CentOS
- Tomcat 7
- Liferay 6.2 CE
- Orbeon 4.4.0
Can you verify steps from below link, it might help you.
http://www.liferay.com/community/wiki/-/wiki/Main/How+to+Add+a+Configuration+Page+to+a+Portlet
on your configuration action class you should be getting the parameter value (from your config jsp) & store it in preferences. This should update the value in preferences.
I got the answer on Twitter : https://twitter.com/mikew_satx/status/428752758984806400
This line :
<requires-namespaced-parameters>false</requires-namespaced-parameters>
was missing in liferay-portlet.xml.
This is specific to Liferay 6.2.
Related
I implemented Google authentication in my Yesod application.
When I open http://localhost:3000/auth/login I see a page generated by Yesod.
I tried to add login.hamlet to templates folder but it didn't override default login page.
Which is the right way to customize login page in Yesod?
You can override the classes methods listed here https://www.stackage.org/package/yesod-auth
For example if you want to change the default email login page, you can do in Foundation.hs
instance YesodAuthEmail App where
...
emailLoginHandler = myEmailLoginHandler
and then look here to see how to implement it https://www.stackage.org/haddock/nightly-2019-08-26/yesod-auth-1.6.7/src/Yesod.Auth.Email.html#defaultEmailLoginHandler
I want to customize OpenAm login page, for client perspective,
I had check OpenaAm Chapter for latest XUI changes, ie by default it takes XUI
I tried to configure current default theme,
present in
XUI/themeConfig.json under the directory where we unpack OpenAM,
For example.
I had modify footer element : by default footer mailto element: info#forgerock.com
"footer": {
"mailto": "info#xyz.com",
"phone": ""
}
}
after pack and deploy war file,
But still it showing old one ie info#forgerock.com on startup
My question is what is the proper steps of customizing OpenAm login page , from OpenAm guide, it was bit confusing.
Please suggest
Thanks
a)Modify XUI\config\themeConfig.json, delete cache from your web browser...Then reload page and see what you had entered.
b)You can also set org.forgerock.openam.core.resource.lookup.cache.enabled, to false in Configuration > Servers and Sites > Server Name > Advanced to see in real time your modify, but in a Production Environment remember to change again to true for better performance.
Best regards,
Alex
I'm using Liferay 6.2.1 EE SP6/CE.
I've modified the password policies to enable:
passwords.default.policy.change.required=true
This forces new users to change the password on first login.
When user tries to login for the first time, the user is redirected to change his password as expected, but the theme is Classic.
I have a custom theme developed for my whole site.
How can I apply this custom theme to the Change Password on first login - "New Password" screen?
Tried the below properties to no effect:
default.regular.theme.id=mycustomtheme_WAR_mycustomtheme
default.user.public.layout.regular.theme.id=mycustomtheme_WAR_mycustomtheme
default.user.private.layout.regular.theme.id=mycustomtheme_WAR_mycustomtheme
Try to set a default theme in:
Control Panel -> Configuration -> Portal Settings -> Display Settings -> Look and Feel -> Default Theme
The below portal property fixed it.
default.user.private.layout.regular.theme.id=mycustomtheme_WAR_mycustomtheme
By default my gitlab homepage starts www.mydomain.com/users/sign_in. I would like to change this to show 'www.mydomain.com/public' instead. How do I configure this?
Setting custom startpage for non-logged in users:
From "Admin Area" goto the gear on the left and choose "Settings"
Find parameter "Home page URL" and set it to www.mygitlab.com/explore.
Optional set "After sign out path" to same url
Click save
Tested with version is 8.14.4 CE
This answer was written while running Gitlab 6. Any instructions may be outdated.
The feature request has been declined so you have to do it on your own and change the source code.
Full tutorial here: Kovah.me DevBlog
Short HowTo:
Just open
gitlab/app/views/layouts/devise.html.haml
and change what you want.
For example you could replace %h1 GitLab with your own logo. Use the image tag for it: %img{:src => "/source/to/image.png"}
But attention! You have to use spaces to indent all elements! And make a backup before running any upgrades.
I want to redirect user to own error page instead of default liferay error page.I am using 6.1.1 CE ga2.
I tried
layout.show.http.status=true
layout.friendly.url.error=/error
inside portal-ext but no luck.
As you haven't specified for which type of error's you need to display custom error pages so i am showing it for 500.You can implement for others.
Add following configuration in the application server web.xml.
$TOMCAT_HOME/conf/web.xml
<error-page>
<error-code>500</error-code>
<location>/ErrorPages/Error500.jsp</location>
</error-page>
Make changes for redirection in the error pages.
< script>location.href='/web/ip/login';< / script >
you can also achieve it through ext plugin . I never tried it. i will try and let u know
Solution 1
Show Error Page:-
Step 1:- Go to portal servers
liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\webapps\ROOT\html
Create new folder with name “error”
Step 2 :- Paste attached image (accessDenied.png) in new created path
liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\webapps\ROOT\html\error
Step 3 Change in
portal-ext.properties
Add new token
layout.friendly.url.page.not.found=/html/error/accessDenied.png
Step 4 Restart the server.
This solution will display error png in case of Error code 404 .
Solution 2 :-
Go to tomcat-7.0.27\webapps
Go to each portlet and create new folder images if not available.
Paste attached accessDenied.png in images folder.
Go to WEB-INF of each portlet and edit web.xml .
Add
<error-page>
<error-code>404</error-code>
<location>/images/accessDenied.png</location>