Some code example,
Using resource resolver,
import com.day.cq.wcm.api.PageManager;
ResourceResolver resolver = <Get instance of resource resolver>
<If you have request object then request.getResourceResolver()>
PageManager pm = resolver.adaptTo(PageManager.class);
pm.create(String parentPath, String pageName, String template, String title) throws WCMException
No comments:
Post a Comment
If you have any doubts or questions, please let us know.