I am currently struggling with typepost. Do I need a collection to have a select box with all the pages of a certain page (level 1, level 2). So, let's say I have a page called "product", there are sub-types in both "Product 1" and "Product 2", "Product 1" and "Product 2" There are other sub-types.
Now, I found the following script:
temp.drop_down_box = COA temp Drop_down_box {10 = HMENU 10 {# Special menu type 'directory': Sub- Get page special = directory # '123' is the UID of the page, for which the sub-page drop-down box will be listed in the special. Value = 35 # Select the box on the Javascript event 'On Change', which is capable of jumping on the target page, once the entry is selected in the list = = lt; Name = "dropdown_navigation" size = "1" onChange = "document.location .href = 'index.php? Id =' + this.value" & gt; | & Lt; / Select & gt; 1 = TMENU 1 {expAll = 1 noBlur = 1 no {# 'value' holds the page's UID in the list (later added to the above target URL) stdWrap.dataWrap = & lt; Option value = "{field: uid}" & gt; AllWrap = | & Lt; / Options & gt; # Do not wrap items in link tags doNotLinkIt = 1} # Participate in the 'subway' and 'dot-lilient' settings from any part; Copy "> CUR = 1 CUR {# If we are on the current page, mark this list entry as 'selected' stdWrap.dataWrap = & lt; option value =" {field: uid} "selected = "Selected" & gt;}}}} This is working fine, but at only one level. I have to do this like this:
< Code> Products - Product 1 - Item 1 - Item 2 - Item 3 - Item 4 - Product 2 - Item 1 - Item 2 - Item 3 ... And so on.
Is there any way to do this?
Best regards, Andrew Edit:
* Edit: This is working: temp.drop_down_box = COA temp.drop_down_box {10 = HMENU 10 {//}} {code from the first part of the question here} ... // copy the level 1 level and change the required values 2 & lt.1.1 2.NO. LinkWrap = & lt; option value = "{field: uid}" & gt; - | & lt; / option & gt; 3 & lt.1.1 .no.linkWrap = & lt; option value = "{field: Uid} "& gt; ---- | > You need to add n for each menu level Ext TMENU Announcement:
1 = TMEN U 1 {...} 2 = TMENU 2 {...} 99 = TMEU 99 {...}
Comments
Post a Comment