Since jtbc has few references, I have tried it for a long time before learning how to add it. Here I will record it for later reading.
Jtbc modules are divided by folders. Each folder can be understood as an independent module, but all modules can reference a common module (defined in the common folder ).
To create your own module, first copy the existing module, that is, copy the existing folder, instead of Blindly copying it. You must copy it to the nearest function you want, this makes better modifications.
After the replication is complete, clear the cache and click Start. Two identical module names are displayed, and even the operation interfaces are the same, we also need to modify/common/Language/manage in the copied folder. the name of the menu in jtbc.
<? XML version = "1.0" encoding = "UTF-8"?> <XML mode = "jtbc" author = "jetiben"> <Configure> <node> item </node> <field> name, chinese </field> <base> item_list </base> </Configure> <item_list> <item> <Name> <! [CDATA [mgtitle]> </Name> <Chinese> <! [CDATA [Service Support]> </Chinese> </item> <Name> <! [CDATA [LIST]> </Name> <Chinese> <! [CDATA [all columns]> </Chinese> </item> <Name> <! [CDATA [nav_list]> </Name> <Chinese> <! [CDATA [all columns]> </Chinese> </item> <Name> <! [CDATA [nav_commendatory_1]> </Name> <Chinese> <! [CDATA [recommended topics]> </Chinese> </item> <Name> <! [CDATA [nav_hidden_1]> </Name> <Chinese> <! [CDATA [hidden columns]> </Chinese> </item> <Name> <! [CDATA [nav_add]> </Name> <Chinese> <! [CDATA [Add a column]> </Chinese> </item> <Name> <! [CDATA [nav_edit]> </Name> <Chinese> <! [CDATA [edit a column]> </Chinese> </item> <Name> <! [CDATA [nav_category]> </Name> <Chinese> <! [CDATA [Category filtering]> </Chinese> </item> <Name> <! [CDATA [nav_category_message-1]> </Name> <Chinese> <! [CDATA [No subcategories available for filtering under the current category]> </Chinese> </item> <Name> <! [CDATA [req_topic]> </Name> <Chinese> <! [CDATA [title cannot be blank]> </Chinese> </item> </item_list> </XML>
Change to your own.
Save. Clear cache. (Cache clearing: Start System-related tools system cache refreshing and deletion)
Then the menu becomes what you need.
This is not the case. The module you copied shares a table with the original module. You can add a record to the new module. This will also happen in the original module. If you want to avoid this situation, you must manually create a new table, although the structure is the same as that of the original table.
Modify the database name in/common/config. jtbc:
<?xml version="1.0" encoding="utf-8"?><xml mode="jtbcf" author="jetiben"> <configure> <node>item</node> <field>name,chinese</field> <base>item_list</base> </configure> <item_list> <item> <name><![CDATA[ndatabase]]></name> <chinese><![CDATA[jtbc_service]]></chinese> </item> <item> <name><![CDATA[nfpre]]></name> <chinese><![CDATA[a_]]></chinese> </item> <item> <name><![CDATA[npagesize]]></name> <chinese><![CDATA[20]]></chinese> </item> <item> <name><![CDATA[nlisttopx]]></name> <chinese><![CDATA[2000]]></chinese> </item> <item> <name><![CDATA[nuppath]]></name> <chinese><![CDATA[common/upload/]]></chinese> </item> <item> <name><![CDATA[nuptype]]></name> <chinese><![CDATA[.bmp.jpg.gif.png]]></chinese> </item> <item> <name><![CDATA[nclstype]]></name> <chinese><![CDATA[0]]></chinese> </item> <item> <name><![CDATA[nurltype]]></name> <chinese><![CDATA[0]]></chinese> </item> <item> <name><![CDATA[nbasehref]]></name> <chinese><![CDATA[0]]></chinese> </item> <item> <name><![CDATA[nindex]]></name> <chinese><![CDATA[default.jsp]]></chinese> </item> <item> <name><![CDATA[ncontentcutepage]]></name> <chinese><![CDATA[1]]></chinese> </item> <item> <name><![CDATA[ncreatefolder]]></name> <chinese><![CDATA[htmldata]]></chinese> </item> <item> <name><![CDATA[ncreatefiletype]]></name> <chinese><![CDATA[.html]]></chinese> </item> <item> <name><![CDATA[nuninstall]]></name> <chinese><![CDATA[1|1|1]]></chinese> </item> </item_list></xml>
In this way, the module record is accessed in the newly created table, and then you can change it on your own.
Jtbc new module