O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Friendly URL routing and mapping in plugins

User Interfaces may get affected when using friendly URL routing and mapping. URL routing or mapping could shorten URL, as you can see in browsers. This section will address URL routing.

URL routing

A route is a pattern for a URL. It includes named fragments automatically parsed from the URL into the parameter map. Every URL parsed by a route could also be generated from the resulting parameter map. In order to add routes in Knowledge Base plugins' Admin portlet, you could create an XML file admin-friendly-url-routes.xml with following lines at the package com/liferay/knowledgebase/admin/portlet. Of course, you can add routing XML for each portlet in one plugin project.

<?xml version="1.0"?> <!DOCTYPE ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required