Liferay URL problems -


i little confused liferay's friendly url mechanism , utility classes.

can please explain url me in detail?

http://127.0.0.1:8080/web/guest/home ^      ^         ^    ^   ^     ^                      prot.  hostname  |    |   |  layout friendlyurl                 port  |  sitename                       ??? 

part 4 web miracle me , seems indicating if site staged, public or private?

the next question be, utilclass use guarantee layout exists in site.

you're right, web part indicates the site public , private pages ot group. check if layout exists friendlyurl of layout use :

layoutlocalserviceutil.getfriendlyurllayout(long groupid, boolean privatelayout, string friendlyurl) 

if doesn't suit there other methods in class may.

liferay doc: layoutlocalserviceutil


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -