使用eclipse IDE with liferay plugin 创建 liferay module ,选择theme,
在theme 里面得sitemap.json中编写pages创建,怎样创建可以参考https://help.liferay.com/hc/en-us/articles/360017887612-Defining-Pages-in-a-Sitemap。
重点总结:
1.如果type类型为url,那么"typesetting":“url=http://www.baidu.com”.
2.如果page里面引用webcontent,在后面想使用此site template创建site,正常应该是指定groupid为global site就可以但实验并不好用,目前项目上是将其他的都配置完成不在使用code更新,这样就相当于删除此war,然后再页面直接拖拽global 下的webcontent,如果是其他站点的webcontent并不会同步更新到使用此site template的site上面去。
3.一定先把code里面得site template定义好,再用页面去设置,之后就不要这个war了,因为重启他会同步覆盖这个site template,就会导致你之前在页面修改得内容覆盖。
4.个人建议sitemap.json里面可以定义page 属性(如url,portlet,panel,linklayout等),page里面引用得portlet,assetpublisher等,其他得就再页面设置,两者结合,如果你的site里面有需要webcontent,structure,template,也可以再里面定义。
Liferay 7.1 sitemap create site template
最新推荐文章于 2024-07-18 20:13:39 发布