Site Logo
Looking for girlfriend > Looking for a wife > Liferay get page friendly url

Liferay get page friendly url

Blog about Liferay, Java and Selenium automation tool. Mainly writing on Liferay development and administration solutions. All About Liferay. Here is the example by which you can retrieve URL of portlet which is reside on another Page. Let say if you have Portlet A on page A and there is one more portlet called Portlet B on some other page that you dont know Option 1 Option 2.

Content:
SEE VIDEO BY TOPIC: Liferay 6.2 Creating user friendly URL

Navigation

By default, the standard Welcome page is displayed on login for all users. However, specific landing pages can be defined for user group, site, or organization; by adding property settings to the portal-ext. In the following example, using the simplest of declarations, a user is directed to the landing page for the first site that he is a member of.

If not a part of any site, it directs him to the first organization that he is a member of. If not part of any organization, it directs him to the default landing page which is the guest home page.

If the user belongs to more than one group, the operator group is given preference over dba , and dba is given preference over analyst. If the user does not belong to any of the groups, he is directed to the default landing page which is the guest home page.

Remember the following when configuring the portal-ext. Or when another page URL is explicitly set in the properties file. If page. The property file is evaluated line-by-line and in order. The last successful match wins, so define the broadest evaluations first, and then narrow down to the most specific cases.

Then specify the order of evaluation in the properties file, and set properties for group priority and ignore lists for sites and organizations. Refer to the portal-ext. For more information about the portal-ext. In the Operations Center console, configure your users, groups sites and organizations. For information on adding pages, see Section 5.

For information on importing pages, see Section 5. Navigate to the page and note the URL. From the Dashboard, click Welcome and select Control Panel. Click Actions next to the desired group, site or organization; and select Manage Pages. Under Pages , create or select the page to be the default home page for the group.

Repeat these steps for each group, organization, or site that you wish to configure. Add the following required lines as an initial declaration of comma delimited entries:. LoginPostAction is required for Operations Center authentication. DefaultLandingPageAction takes the user to the guest home page if no other option is defined. UserGroupLandingPageAction redirects the user to his group's home page on login.

Then define additional properties related to user group in Step 3. OrganizationLandingPageAction redirects the user to his site's home page on login. Restart the Dashboard server for the changes to take affect. For more information, see Section 2. LoginPostAction, com. DefaultLandingPageAction, com. OrganizationLandingPageAction, com.

UserGroupLandingPageAction dashboard. If the specified URL cannot be found, the Dashboard shows a error. Verify there is a home page for user groups, sites, or organizations as required. Click Save. Add the following required lines as an initial declaration of comma delimited entries: login.

DefaultLandingPageAction login. To customize by user group: dashboard.

Friendly URLs

This is one of those tidbits you get served on a platter if you're lucky enough to attend a Liferay training session. So how do we get such a URL to become available to us? Here are the steps. For convenience, consider we have a content structure named XYZ. Now, if you have a web content item aka journalarticle for newbies with a title: The Rain in Spain stays mainly in the plain , you will be able to get to it using:.

Obtain the plugin binary package from the Liferay Marketplace and deploy using the Liferay control panel Apps page in the usual way. If you have pre-existing content in your portal, tiny URLs for them will be automatically generated during portal startup. This operation may take some time to complete, depending on how much content you have on your portal.

The list page will present a table with the list of registered people and each table entry will have a link for its detail. In this implementation, we assume a list page named people. The most important explanations were made in place, as comments in the code. Also, the most relevant parts of the code were marked in bold. In the definition of parameters through implicit-parameters, we do not include them on the shown URL but we define its value, implicitly, leading us to the desired behaviour.

Create Portlet URL In Liferay

But what if we have to create multiple friendly URL. Let us see how to do it. I would like to further recommended to visit by blog on How to create Render and Action methods. Hi Nilang, Thank you for the helpful article! Is this possible? I am using Spring MVC portlet. I have tried this friendly url and it is working for Action and Render Mappings, but when i tried to do the same for resourceMapping, it is changing the url but not calling that method, calling the default renderMapping in the application. For your requirement, you need to define the DIV under which you need to show the print. Then by using javascript,hide all other div except this print when you click on print button.

Liferay Friendly URL

The normal generated portlet URLs containing a set of internal Liferay request parameters. These long URLs of links or forms are mostly not readable and its not easy to share it somewhere else. Explanation of the Liferay Friendly Mapper route parameters: routes: Routes element which contains all route entries route: Single route element entry pattern: Pattern of the mapped friendly URL visible in address bar generated-parameter: These parameters will be generated from parameters in the request URL ignored-parameter: These parameters will be igored and not included in generated URLs implicit-parameter: Used for static attributes which can be ignored by recognition overridden-parameter: Parameter that should be set to a certain value when a URL is recognized It is necessary to order the parameters as described above. These files should located in the resources folder otherwise they will not be available on Apache Tomcat and cannot be initialized by Liferay.

By default, the standard Welcome page is displayed on login for all users.

By default, portlet URLs contains lot of parameters like portlet mode,portlet life cycle,etc, which makes URL very lengthy and complex. Sometimes we want to share URL, which is human readable and meaningful. Also we may not want to expose all those parameters in the browser. Liferay provides a friendly URL mapping capability, where we can define our own URL pattern along with important parameters and hiding unwanted parameters from the URL path.

How to create Friendly URL for Liferay portlet

Post a Comment. Search for:. Friday, June 13,

SEE VIDEO BY TOPIC: How to create SEO Friendly URL ? - URL Renaming - URL Rewriting in Hindi

The normal generated portlet URLs containing a set of internal Liferay request parameters. These long URLs of links or forms are mostly not readable and its not easy to share it somewhere else. Explanation of the Liferay Friendly Mapper route parameters: routes: Routes element which contains all route entries route: Single route element entry pattern: Pattern of the mapped friendly URL visible in address bar generated-parameter: These parameters will be generated from parameters in the request URL ignored-parameter: These parameters will be igored and not included in generated URLs implicit-parameter: Used for static attributes which can be ignored by recognition overridden-parameter: Parameter that should be set to a certain value when a URL is recognized It is necessary to order the parameters as described above. These files should located in the resources folder otherwise they will not be available on Apache Tomcat and cannot be initialized by Liferay. Skip to content.

Making URLs Friendly

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I want to get a friendly URL for a layout based on layout id. Currently this is how I do it:. Learn more.

Dec 18, - Liferay provides a friendly URL mapping capability, where we can which is a number and followed by a string which is a jsp page. Friendly.

Just fill in an empty string for the layout. Because you will break your Liferay installation completely and you won't be able to reach your portal anymore. The right answer: take a closer look at Virtual Hosting in Liferay. Add a new Liferay instance only if needed.

Creating URL Routes

This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, The default values can be overridden in portal-ext. Must set the universally unique identifier UUID for the layout.

One was full of himself, and always wanted to show everyone users and SEO services alike just how smart he was, by openly displaying all of the parameters he carried. He was happiest when he met new people and could tell they were intimidated and confused by him. The other was just, well, friendly.

.

.

.

.

Comments: 0
  1. No comments yet.

Thanks! Your comment will appear after verification.
Add a comment

© 2020 Online - Advisor on specific issues.