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
Post a Comment