i am thinking you would have to use a combination of xslt and jquery to change the source of the second <select></select> are you talking about dropdown menus or a navigation that has flyouts?
you can check out http://packages.maliciousthinktank.com and take a look at the mtt_ultimate nav, Dirk helped me out with it big-time, but he lets me distribute it as a jquery based horizontal navBar package.
I THINK I could be onto something. Must have coffee!! So I'm going to post this up while I walk down to the shop in case anyone wants to comment on the direction I'm going.
Something similar to script I found on the old forum in my header for catching the value of the 1st drop link to old post - problem being the original poster said it didnt work...and its for dealing with usercontrols not xslt/html items
<!-- Drop 2 These items are a list of items that are filtered determined on selection from Drop1 --> <select> <xsl:for-each select="umbraco.library:GetXmlNodeById($dropTwoSource)/node [@nodeTypeAlias = 'Container']"> <option value="{umbraco.library:NiceUrl(@id)}">
Cascading Drop Down - Documents - Complete Brain Block
I don't know why I can't seem to grasp this. It is driving me absolutely nuts. I'm sure its something so simple its rediculous.
But I'm having one of those moments where you could ask my my name and I'd freeze.
I'm trying to build casecading dropdowns
The first drop down would be all sub-nodes of X
The second would be All Related Documents of item selected in 1st drop down.
I can query them separately fine. I'm getting stuck on the ajax-y part.
The second dropdown needs to be Related from a Changeable Source - right?
BIG QUESTIONS
- Can I do this in one XSLT doc?
- If so... how do I code the second drop?
-If not in one XSLT - throw your best idea at me
Probably better off putting something like this into a usercontrol.
Hi Amanda,
Sure it can be done in xslt. That's how all (most) Umbraco navigation is done. Could you give us an example of what you're trying to do?
/Jesper
i am thinking you would have to use a combination of xslt and jquery to change the source of the second <select></select> are you talking about dropdown menus or a navigation that has flyouts?
you can check out http://packages.maliciousthinktank.com and take a look at the mtt_ultimate nav, Dirk helped me out with it big-time, but he lets me distribute it as a jquery based horizontal navBar package.
let us know if we can help.
I THINK I could be onto something. Must have coffee!! So I'm going to post this up while I walk down to the shop in case anyone wants to comment on the direction I'm going.
Something similar to script I found on the old forum in my header for catching the value of the 1st drop link to old post - problem being the original poster said it didnt work...and its for dealing with usercontrols not xslt/html items
This is the main part of my xslt file---
i think you can go the jquery route and xslt... but maybe that is overkill...
http://www.ajaxray.com/blog/2007/11/08/jquery-controlled-dependent-or-cascading-select-list-2/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.