Is there a way to get the HstSiteMenu without having a requestContext - I can get the Channel the Mount etc.
To get the HstSiteMenu
without having a HstRequestContext
, you can use the HstLinkCreator
class. Specifically, you can use the method HstLinkCreator#create(javax.jcr.Node, org.hippoecm.hst.core.request.HstRequestContext, java.lang.String)
where the last String
argument is the site alias. This method allows you to create links without directly needing the HstRequestContext
Hello Rajesh,
I dont need a HstLink - I need a specific HstSiteMenu. The method you mentioned need RequestContext as well but thanks.
to get HstSiteMenu you need to be on the request thread
Thank you!