MenusPlugin
MenusPluginã«ã¤ãã¦ã
Hierarchical navigation menus
http://trac-hacks.org/wiki/MenusPlugin
ããã²ã¼ã·ã§ã³ãã¼ã¸ã®é ç®è¿½å ãã«ã¹ã¿ãã¤ãºãé層ã¡ãã¥ã¼åãè¡ããã©ã°ã¤ã³ãâ¦ã®ã¯ããªã®ã ãããã¾ãæ å ±ãè¦ããããªããè¨å®ä¾ãè¦å½ãããªãã£ãã®ã§ããã«ã¡ã¢ã
ã¾ããã©ã°ã¤ã³ããã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ãTrac.iniã®è¨å®ãè¡ãã
[components] tracmenus.* = enabled
ãã©ã°ã¤ã³ãæå¹åã
[menu-custom] serve_ui_files = true
serve_ui_filesï¼ã¡ãã¥ã¼ã®ã«ã¹ã¿ãã¤ãºãæå¹ã«ãããtrueã§æå¹ãfalseã§å
ã®ã¡ãã¥ã¼ã«æ»ãã
managed_menusï¼ã«ã¹ã¿ãã¤ãºå¯¾è±¡ã¡ãã¥ã¼ãæå®ãdefaultå¤ã¯ mainnav,metanav
serve_ui_files = true ã«ããã¨ãmanaged_menusã§æå®ããé ç®ãæ©è½æ¡å¼µããããæ¡å¼µå 容㯠http://trac-hacks.org/wiki/MenusPlugin ãåç §ã
ããã§ã¯ããããã¡ãã¥ã¼ç¨ã«æ°ãã nav_* ã¨ããã¡ãã¥ã¼ã追å ããæ¢åã®ã¡ãã¥ã¼ã¯ãã®ä¸ã«åããããã«ããããããã¡ãã¥ã¼ã«ããé ç®ã«ã¯ *.parent = top ã¨è¨å®ãããã¡ãã¥ã¼ãã©ã®é çªã§ä¸¦ã¹ããã¯ã*.orderã®å¤ã§è¨å®ããã
[mainnav] nav_wiki = true nav_wiki.hide_if_no_children = 1 nav_wiki.href = /wiki nav_wiki.label = Wiki nav_wiki.order = 1 nav_wiki.parent = top nav_tickets = true nav_tickets.hide_if_no_children = 1 nav_tickets.href = /wiki/MyTickets nav_tickets.label = ãã±ãã nav_tickets.order = 10 nav_tickets.parent = top nav_repos = true nav_repos.hide_if_no_children = 1 nav_repos.href = /browser nav_repos.label = ãªãã¸ããªãã©ã¦ã¶ nav_repos.order = 20 nav_repos.parent = top nav_project = true nav_project.hide_if_no_children = 1 nav_project.href = /timeline nav_project.label = ããã¸ã§ã¯ã nav_project.order = 30 nav_project.parent = top nav_admin = true nav_admin.hide_if_no_children = 1 nav_admin.href = /admin nav_admin.label = 管ç nav_admin.order = 99999 nav_admin.parent = top
ããã§[Wiki][ãã±ãã][ãªãã¸ããªãã©ã¦ã¶][ããã¸ã§ã¯ã][管ç]ã®ï¼ã¤ã®ã¡ãã¥ã¼ã追å ãããã
次ã«æ¢åã®ã¡ãã¥ã¼ãããããã追å ããã¡ãã¥ã¼ã®ä¸ã«åããã*.parent ã«ãããã¡ãã¥ã¼åãæå®ããã
# [Wiki] wiki.parent = nav_wiki wiki.href = /wiki wiki.label = ã¹ã¿ã¼ããã¼ã¸ # [ãã±ãã] tickets.parent = nav_tickets newticket.parent = nav_tickets query.parent = nav_tickets report.parent = nav_tickets query = true query.href = /query query.label = ã«ã¹ã¿ã ã¯ã¨ãª report = true report.href = /report report.label = ã¬ãã¼ãä¸è¦§ # [ãªãã¸ããªãã©ã¦ã¶] browser.parent = nav_repos # [ããã¸ã§ã¯ã] blog.parent = nav_project discussion.parent = nav_project #peerreviewmain.parent = nav_project roadmap.parent = nav_project timeline.parent = nav_project tags.parent = nav_project search.parent = nav_project doxygen.parent = nav_project # [管ç] admin.parent = nav_admin #billing.parent = nav_admin builds.parent = nav_admin importer.parent = nav_admin stractistics.parent = nav_admin ticketcalendar.parent = nav_admin ticketgantt.parent = nav_admin
[Hudson]ã¯builds.parentã§æå®ããªããä½æ¥æé管ç(Timing and Estimation Plugin) 㨠PeerReview Plugin ã®ï¼ã¤ã¯ãããã¡ãã¥ã¼ä¸ã«åããããªãã£ãã®ã§ã³ã¡ã³ãã¢ã¦ãã
[metanav] account = false settings = false
Trac 0.11.4.ja1ã®å ´åãæ¥æ¬èªåã®é¢ä¿ãmetanavã«account,settingsã表示ããã¦ãã¾ããããããããfalseã«è¨å®ãã¦è¡¨ç¤ºãææ¢ããã
è¨å®å¾ã®è¡¨ç¤ºã¯ãããªãããã
è²ãæªè¶£å³ãªã®ã¯æ°ã«ããªãæ¹åã§â¦ãæ¬å½ã¯ããã²ã¼ã·ã§ã³ãã¼ã®ãã¶ã¤ã³ãã«ã¹ã¿ãã¤ãºåã®ãã®ã«åãããããã°è¯ãã®ã§ãããcssãããããªãã®ã§ä»ã®ã¨ããæ¾ç½®ã§ãã