Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: message boards and friendly urls
I'm trying my hand at writing message-boards-friendly-url-routes.xml based on http://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper but apparently I'm not quite smart enough to get it done. Has anyone written an xml file for Friendly urls for the message board portlet?
Just to make sure, are you using Liferay 6.0.3 or later?
Yes, this is with EE 6.0 sp1, so it's 6.0.11 iirc.
I'm using Liferay CE 6.0.5 and the FriendlyURLMapper is defined by default and it's working just fine.
message-boards-friendly-url-routes.xml is not mentioned in the page you mentioned. Are you tring to customize document-library-display-friendly-url-routes.xml?
You can look at the default settings and if you're having problems, please post the liferay-portlet.xml and the your friendly-url.routes.xml files.
message-boards-friendly-url-routes.xml is not mentioned in the page you mentioned. Are you tring to customize document-library-display-friendly-url-routes.xml?
You can look at the default settings and if you're having problems, please post the liferay-portlet.xml and the your friendly-url.routes.xml files.
Inside the liferay-portlet.xml file, in the message boards portlet definition, the friendly-url-routes path is defined, just the same as it is with the document library display.
From around line 188:
----SNIP----
<friendly-url-mapper-class>com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper</friendly-url-mapper-class>
<friendly-url-mapping>message_boards</friendly-url-mapping>
<friendly-url-routes>com/liferay/portlet/messageboards/message-boards-friendly-url-routes.xml</friendly-url-routes>
<portlet-data-handler-class>com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl</portlet-data-handler-class>
----END-SNIP----
I'm simply looking for an example of the defined xml file.
From around line 188:
----SNIP----
<friendly-url-mapper-class>com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper</friendly-url-mapper-class>
<friendly-url-mapping>message_boards</friendly-url-mapping>
<friendly-url-routes>com/liferay/portlet/messageboards/message-boards-friendly-url-routes.xml</friendly-url-routes>
<portlet-data-handler-class>com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl</portlet-data-handler-class>
----END-SNIP----
I'm simply looking for an example of the defined xml file.
http://www.liferay.com/ja/community/forums/-/message_boards/message/6104324
Community
Company
Feedback