模塊自定義后,可以為他單獨(dú)設(shè)計(jì),管理頁面和發(fā)布頁面
一、如何自己修改后臺模塊的模板又不影響系統(tǒng)升級呢?
默認(rèn)模塊模板介紹
發(fā)布/修改:/dayrui/App/Module/Views/share_post.html 列表:/dayrui/App/Module/Views/share_list.html
如果要改的話,不能改上面的文件,需要把它復(fù)制出來,再修改
比如demo模塊為例,那么他的自定義文件就是:
發(fā)布/修改:/dayrui/App/Demo/Views/demo_post.html 列表:/dayrui/App/Demo/Views/demo_list.html
把上面默認(rèn)模塊模板的文件復(fù)制進(jìn)去再重命名
注意:發(fā)布和修改頁面共用的模板是:***_post.html,如果有這個(gè)必要,也可以進(jìn)行區(qū)別發(fā)布和修改頁面,
例如:demo_post.html改為demo_edit.html,那么此edit文件就是修改界面的單獨(dú)模板了
二、模塊后臺模板介紹和對應(yīng)復(fù)制目錄介紹
| 模板名稱 | 默認(rèn)模板路徑 | 復(fù)制后的模板路徑 |
| 發(fā)布頁面 | /dayrui/App/Module/Views/share_post.html | /dayrui/App/Demo/Views/demo_post.html |
| 已通過的列表頁面 | /dayrui/App/Module/Views/share_list.html | /dayrui/App/Demo/Views/demo_list.html |
| 審核列表頁面 | /dayrui/App/Module/Views/share_list_verify.html | /dayrui/App/Demo/Views/demo_list_verify.html |
| 欄目列表頁面 | dayrui/Fcms/Module/Views/share_category_list.html | /dayrui/App/Demo/Views/demo_category_list.html |
| 欄目發(fā)布或修改頁面 | dayrui/Fcms/Module/Views/share_category_post.html | /dayrui/App/Demo/Views/demo_category_post.html |
| 評論列表頁面 | dayrui/Fcms/Comment/Views/share_comment_list.html | /dayrui/App/Demo/Views/demo_comment_list.html |
| 評論添加修改頁面 | dayrui/Fcms/Comment/Views/share_comment_post.html | /dayrui/App/Demo/Views/demo_comment_post.html |
| 評論評分查看頁面 | dayrui/Fcms/Comment/Views/share_comment_review.html | /dayrui/App/Demo/Views/demo_comment_review.html |
| 回收站管理頁面 | dayrui/Fcms/Comment/Views/share_list_recycle.html | /dayrui/App/Demo/Views/demo_list_recycle.html |
列表頁引用文件{template "mytable.html"}表示引用主框架的通用列表樣式文件,位于:dayrui/Fcms/View/mytable.html
請問自建模塊的后臺模板樣式在哪里查看使用?