CZ Talk:Extensions/Treeview extension

From Citizendium
Jump to navigation Jump to search

Please help redesign the sidebar!

Add your ideas somewhere below....

Tree testing

{{#tree:

}}

{{#tree:openlevels=1|

  • Root
    • Sub-item
    • Another sub-item

}}

{{#tree:openlevels=2|

  • Root
    • SubOne
    • SubTwo
      • SubSubOne
        • SubSubSubOne
      • SubSubTwo
        • SubSubSubTwo
  • User:Robert_W_King
  • Developing Article fire
  • =Test=
  • ==Test==
  • ===Test===
  • test
  • test
  • test
 
3
 
4
3
 
W
 


  • testtwo

}}

Choose license

{{#tree:

  • Creative Commons logo tiny.png 
    • CC-by
    • CC-by-sa
    • CC-by-nc
    • CC-by-nd
    • CC-by-nc-nd

}}



Can it be nested inside a table with a frame?

Tree testing:

Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken

Bunch-o-stuff

{{#tree:

}}

Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken

Stephen, please make a note on how it works with surrounding text. It could potentially screw up the formatting of the navigation on the left side; I don't know if it will somehow hover over the top of the text (which is what I'm worried about) or if it will move everything over strangely. In fact, expand this tree entirely, and then expand one of the above trees... it sits over the text which might be a problem. --Robert W King 17:33, 17 December 2007 (CST)
Robert, it appears flawlessly on my screen in Ff 2.X. Stephen Ewen 18:03, 17 December 2007 (CST)
I just can't explain the horror... I don't *want* to upgrade to FF 2.x or IE7 but I may have to eat crow. Additionally we should change the images; I don't think the folder look is "cool". --Robert W King 18:07, 17 December 2007 (CST)
I see the error now. I think I fixed it with margin: 0px 15px 15px 15px; . Stephen Ewen 18:40, 17 December 2007 (CST)

Getting the sidebar to use it

Looks like we missed that there's one additional step to get the sidebar to use it, see here. I'm right now looking carefully to see if we need to customize the text for the inclusion, first. Stephen Ewen 15:01, 17 December 2007 (CST)

Yep, needs customization. This is going to be fun!
Robert, Larry, what I am thinking is two main trees, "for readers" and "for contributors". Any drafts with this or another scheme? Stephen Ewen 15:34, 17 December 2007 (CST)
Just do something like, if loggedin then this tree, elseif this other tree. I think you might enlist Chris if he's not too busy. --Robert W King 16:37, 17 December 2007 (CST)

Robust

Seems pretty robust! Limited on template usage within the template though, looks like you can only use text-based templates. I tried to use the subpages template on the last one, so I'm not sure what's up with that. --Robert W King 15:21, 17 December 2007 (CST)

http://semeb.com/dpldemo/index.php?title=Treeview_extension Stephen Ewen 15:29, 17 December 2007 (CST)

Does this solve the Biology Workgroup's problem?

I'd like them to key in here.. --Robert W King 16:44, 17 December 2007 (CST)