Hai-
I need the menu stalks functionaility without the html wrapper crud. I need to recursivly get a menu or tree heirchy and build a javascript array off of it. I know I need to write my own function like menu stalks except without the html (stripped down version) how would i go about this?
thanks
Kevin
There is actually a site map page that does this - but it is in the commercial modules package 
Depending on where you want it to go, you could change the stalks design area to print it as you want it, or you can create a new asset and print the menu as the body of a page.
If you're just going to change the stalks design area, you'll find the files at:
core/assets/designs/design_areas/menu/design_area_menu_stalks
Hello-
Is there anyway to get it to print without the html inside of it just to print out each asset as i format it? Or do i have to write a custom module?
Kevin
design_area_menu_recursive does this work in the same way that menu stalks does, any docs? I think this is what i need
If you're going to build a JavaScript array, why not use an asset listing to do it?
i need to be able to build a 2 dimensional array of the form
array(
0 : 1,2,3,4
2 : 1,2,3,4
)
from a file structure or tree structure 3 levels deep
the array looks like this
var arrayme= {
0 : [ 13, 24 ],
2 : [ 1, 6, 8, 12, 18 ],
8 : [ 21, 11 ]
};
from a file structure like this
Root folder containing these assets
-0
–13
–24
-2
–1
–6
–8
–12
–18
-8
–21
–11
This is possible with multiple asset listings, though probably not terribly practical. You'll probably have to play with the menu design areas and try and create a custom asset.
Hai-
oye. It seems to me that the menu stalks function is useless. I mean it generates html, more to the point it generates bad html and bad formattting which is uncharactaristic of the other functions and features I have seen, it seems more useful to just allow the use of the recursive menu. I can't even modify the code to strip out the html, I tried and no dice. Is this somthing that will always be this way or is it possible to get an update on the system that allows for more dynamic accessibility of the asset tree? Thanks for your time, and sorry if my opinion was a little to blunt
Kevin
PS list and css would be a much better way to format and build these menu stalks and would be much more dynamic and easily changeable with the css.
Your comment about CSS is correct, but that is not the point of the stalks menu. The stalks menu prints stalk images in a certain way. It doesnt try and place CSS anywhere in the design because you would probably not be able to change it yourself.
The recursive menu is what you should be able to use to do whatever you want, but I havn't actually used it. You can probably figure out the format of the MySource tags if you go through the code - although the menu is not the easiest design area to look at.
Hopefully someone on these forums has used it before and has example code. Anyone?
Hello-
I tried to use the recursive but i get erros when i put in an id and then when i don't. The menu stalks uses or extends the recursive to do all of the work, all menu stalks does is print the html wrappers. Do you know who made it so that I can get the right tags? even the example html page doesnt have anything.
On another note the menu stalks can be done alot easier and alot simpler. Here are the steps
- Nest lists to get the proper indents automatically
- If you want arrows and lines use an arrow image in conjunction with a left border on the image.
- to select it you would just have one li element set to current and use a diff image for that one.
This would be much more elegant, simpler, more compatible, load much faster and much more dynamic. As for including the css I think giving an example how how to format is enough for developers to go from, in most cases all they would have to do is upload their own images. More to the point all the look and feels that i have seen the menu stalk implemented in can be easily done in css. If you guys want an example of what I am talking about let me know and i will post somthing up.
Thanks.
Kevin
Hello-
I remembered I had this bookmarked, this gives ya an idea of the cool things that can be done.
http://css.maxdesign.com.au/listamatic2/index.htm
Kevin
Hello-
On another note if you tell me how to add a design menu area I would like to do that as well, I am a very good php programmer and the code looks… well… fantastic, outstanding job keeping a good format and following the oo model even with php4 restrictions. Thanks.
Kevin
The list CSS is very good. We use lists for all our menus and almost never use the stalks menu. We normally just have 2 or 3 menu levels - so we hard code this into the design for simplicity. You could do this if you know exactly how many menu levels you will have (or the max you will have).
You might just want to edit the recursive menu and get it working. Blair (UK) wrote that and I'll try and get him to read this
If you get the recursive menu working correctly, it would be worth committing to the source tree so it can be used. Otherwise, I can help you create the new menu type when your done changing it to do what you want.
Well it does exactly what I need I just can't access it. I can't hard code this particular use because I need to know what is viewable and what snot. Thanks for your help
Kevin