Site Logo
Looking for girlfriend > Looking for a girlfriend > Get friendly url liferay

Get friendly url liferay

Post a Comment. Search for:. Friday, June 13, In liferay generally we can create any Portlet URL and portlet URL consist of many request parameters and its values apart from those we will add some more request parameters so that finally URL seems to very long. When we request the URL in browser address bar it seems to very long and have many parameters. Some time we might not need all parameters and its values and some of parameters always same, some parameters may be default and some parameters may be constants for every time.

Content:

Navigation

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. Here is an example of using friendly URL in liferay. Check out all Liferay related posts. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account.

You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email. Search for: Search. Date: December 18, Author: Arun 0 Comments. Create a new liferay portlet. Add the following tags inside liferay-portlet.

Ignored parameters do not effect URL recognition. When a URL is built, these virtual parameters will be parsed from the generated parameter and made available in the route pattern for constructing the URL. Create two jsp pages to test the friendly URLs. For example, view. Add the following code to seconPage. Note: Version used: Liferay 6. Rate this:. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:.

Email Address never made public. Post to Cancel. Post was not sent - check your email addresses! Sorry, your blog cannot share posts by email.

Create Portlet URL In Liferay

Liferay User Interface Development. Jonas X. Yuan , Xinsheng Chen. Packt Publishing Ltd , 24 nov. This is a basic tutorial that teaches you how to use the tools provided by Liferay to create your own applications.

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.

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:.

How to create Friendly URL for Liferay portlet

Post a Comment. Search for:. Home About Us Contact Us. Thursday, April 9, Step 1 : Paste below code in view. Email This BlogThis! Share to Twitter Share to Facebook. Newer Post Older Post Home. Subscribe to: Post Comments Atom. Total Pageviews.

Friendly URLs in Liferay

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. Can specify the creation date, modification date and the expando bridge attributes for the layout.

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.

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.

Oh no! Some styles failed to load. 😵

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.

We have industry expert trainer. We provide Training Material and Software Support. For Demo Contact us. Account Options Sign in. My library Help Advanced Book Search.

Making URLs Friendly

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. Here is an example of using friendly URL in liferay. Check out all Liferay related posts. You are commenting using your WordPress. You are commenting using your Google account.

[SOLVED] Friendly URL. http://localhost/news/ is there any way to get rid of useless information, and make it as we want??? Can someone help.

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.

Liferay friendly URL using JSF

Account Options Sign in. My library Help Advanced Book Search. Liferay Portal 5.

Dev Liferay Friendly URL

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:.

The list page will present a table with the list of registered people and each table entry will have a link for its detail.

.

.

.

Comments: 1
  1. JoJobar

    I apologise, there is an offer to go on other way.

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

© 2020 Online - Advisor on specific issues.