Don't worry, I'm doing a bit of the coding at the moment, but I probably won't finish today (Should probably sleep soon). I'll get back onto it at some point. When it's done it'll just be a simple @include and define some variable like "wgTreeviewSidebar = (false|true|#|Array)" Where basically, false/undefined would leave the sidebar alone. True would turn the entire sidebar into a Treeview, # would determine the level of depth you want the system to start at, or an array could determine what id's treeviews should be started at.
I'll try to remember to mail the list when I'm complete. ~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com) Shun Fukuzawa wrote: > DanTMan, thanks! This is great. > > But I'm not good at JavaScript programming. Can you make a simple > example for tree view on sidebar? > > DanTMan wrote: > >> YUI has it's own TreeView stuff, and it'll probably work more >> universally than the TreeView extension. So since it's already loaded on >> all pages on Wikia it would probably be a good thing to use. >> >> Here's the TreeView information: >> http://developer.yahoo.com/yui/treeview/ >> >> This is the code I used to get YUI's TabView working on the Wikia ACG wiki: >> http://en.anime.wikia.com/wiki/MediaWiki:TabView.js >> >> If anyone wants to they can crack at it. E-Mail the list if you do. If >> you don't I'll probably modify the code to setup a TreeView system >> that'll work with a <ul/> or a surrounding <div/>, and give it a >> variable option to enable that to work on certain levels of the sidebar >> in addition to that. >> >> ~Daniel Friesen(Dantman) of: >> -The Gaiapedia (http://gaia.wikia.com) >> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) >> -and Wiki-Tools.com (http://wiki-tools.com) >> >> Shun Fukuzawa wrote: >> >>> Hi all, >>> >>> I'm Shun, Japanese Wikia staff. >>> >>> Japanese user wants to make a dynamic menu on wikia like >>> http://mabinogi.wikiwiki.jp/index.php. Clicking + icon on the sidebar at >>> left, submenu opens. Can we make a such menu on wikia? How do we make >>> it? If JavaScript expert is in this list, please tell me a good tip. >>> >>> I know we can make it to install Treeview extention >>> http://www.mediawiki.org/wiki/Extension:Treeview, but it is not >>> installed now. >>> >>> Thanks. >>> _______________________________________________ >>> Wikia-l mailing list >>> [email protected] >>> http://lists.wikia.com/mailman/listinfo/wikia-l >>> >>> >>> >> _______________________________________________ >> Wikia-l mailing list >> [email protected] >> http://lists.wikia.com/mailman/listinfo/wikia-l >> >> > _______________________________________________ > Wikia-l mailing list > [email protected] > http://lists.wikia.com/mailman/listinfo/wikia-l > > _______________________________________________ Wikia-l mailing list [email protected] http://lists.wikia.com/mailman/listinfo/wikia-l
