Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#301 2017-03-26 18:31:25
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
cool. I will start over and use your plugin
i had no luck trying to implement the one on txp_tips BTW I eventually had to simplify and not use the drop-down feature and i had to change code to make it work to this:<li<txp:if_section name=“default”> class=“active”</txp:if_section>> <a href=”/” title=”“> Home</a> </li>
Note the diff:
<li><a <txp:if_section name=”“>class=“active” </txp:if_section>href=”<txp:site_url />”>Home</a></li>
…. texted postive
Offline
#302 2017-05-14 05:42:18
- murrah
- New Member
- From: Blue Mountains west of Sydney
- Registered: 2017-05-14
- Posts: 4
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Thanks so much for this plugin. :-)
I am a TXP newbie (a few hours old). I have tried to work out how to make a menu with popup sub menus like you have on your page here: http://www.greatoceanmedia.com.au/
The admin side is understandable but I can’t work out what I need by way of a template on the page. I got the main menu working using the simple </txp:adi_menu /> but what would I need to do to replicate something like your website’s menu? Is the submenu show/hide process driven by the tag directives or directly by CSS??
Are there any examples? Searching didn’t reveal any.
Thanks again,
Murray
Offline
#303 2017-05-14 06:57:18
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hi murray … welcome to TXP.
adi_menu is not a widget, it just generates the HTML. So to get the menu to be something other than nested unordered lists you’ll need to use a combination of CSS and javascript.
In my case I’m using the superfish script to make the submenus appear/disappear (in conjunction with CSS) and also this to centre the menu.
Offline
#304 2017-05-14 07:08:23
- murrah
- New Member
- From: Blue Mountains west of Sydney
- Registered: 2017-05-14
- Posts: 4
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Ok, I see. Thanks for your speedy reply.
Yes, enjoying TXP more as I get my head around the approach! I love the speed and simplicity after WordPress!
Related question:
I tried this to see what would happen:
<txp:adi_menu menu_id=“top” include_children=“0” active_ancestors=“1” />
<txp:adi_menu menu_id=“sub” sub_menu_level=“2” />
All good in that my submenu appears below the main menu. I assume I would use something like that tag pattern then the css/js “on top” of that?
Thanks again
Murray
Offline
#305 2017-05-14 08:05:28
- murrah
- New Member
- From: Blue Mountains west of Sydney
- Registered: 2017-05-14
- Posts: 4
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
OK, I worked it out.
For others who might be wondering:
After downloading Superfish and including its relevant js and css, and including jQuery, all I needed to do was replace the standard TXP tag </txp:section_list> with </txp:adi_menu class=“sf-menu” />
Very cool!
Thanks,
Murray
Offline
#306 2019-01-07 20:13:20
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hi Adi. Here’s a blast from the past!!
Just while you were kicking back . . .
For some reason I have recently installed 4.7.1, and now I have come to add another child section to my menu I find that the drag and drop is not operational. It had been in 4.6.something prior to that and all had worked well.
Yeah, no drag and drop rearrangement. This new child is at the bottom of the menu list but I want it at the top.
I have been able to create the new child section, but I can’t seem to move it to the top of the section, to be immediately under the parent. And can’t move any other child section for that matter.
The version I am using is the custom 1.4beta10 version you came up with so kindly.
I do have a large number of children, virtually speaking, 36 under this parent.
How do I sort out this disobedient lot? Get them to take their appropriate place?
Cheers
Offline
#307 2019-01-07 20:33:59
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hi Graeme.
Drag and drop is working for me (4.7.1 with Safari & Firefox). Just remember it’s only for reordering … if you want to assign a child to a parent you have to do that in the table.
Offline
#308 2019-01-07 21:49:40
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Thanks for that.
Looks like it’s a known operating system issue: Mac OS Mojave. I’ve been doing a bit of updating recently.
Bit frustrating, particularly when the supposed “solutions” aren’t working.
Best
And now my keyboard isn’t working!! Lucky I use dictation. Unfortunately I can’t even spell my name, or yours.
Offline
#309 2019-01-07 22:26:09
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
And now my keyboard isn’t working!! Lucky I use dictation. Unfortunately I can’t even spell my name, or yours.
Ouch! That must be very frustrating. On my now 8-year-old macbook two keys “e” and “n” are starting to get choosy about whether to respond (sometimes not at all, sometimes twice for good measure) and it bugs me no end.
I have no idea how you code with correct syntax via voice-control, or for that matter operate drop-downs. If you need a quick solution: how about you attach an external keyboard?
TXP Builders – finely-crafted code, design and txp
Offline
#310 2019-01-07 23:00:02
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hi Jakob
You might realise I’m not a professional coder. Hardly a coder at all. I just have the ability to recognise patterns and copy and paste accordingly!!
I do a lot of writing and not being much of a touch typist I have used Dragon for a few years. It is pretty good at recognising my strange accent. (It’s recently been discontinued, no more development or sales, although the version I have works well enough.)
My mouse and keyboard seem to have started playing up at the same time, although this external keyboard works perfectly. But the lack of drag and drop continues.
And yeah, I have attached my excellent old keyboard from my G5! That’s a blast from the past.
Cheers
Offline
#311 2019-01-08 00:49:16
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Must be gremlins about … the quote link on this forum isn’t working for me today.
And my router wouldn’t let me log in to it earlier. Plus my weather station has started playing up.
I’m scared to go out.
Offline
#312 2019-12-30 02:27:39
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Adi
It seems it’s that time of year. I just hope you haven’t been burned out.
I am still having my drag and drop menu issue. This has come up again as I am adding new sub-sections to my hiking blog and they are unable to be re-ordered.
In the meantime I have bought a new iMac, and have a new operating system.
I know my menu is somewhat unwieldy but it’s the best I can do at the moment.
This is an example of a page of the latest blog in the menu:
https://tramping.net.nz/arahura-blog/
This section, Arahura blog, is supposed to be at the top of the list as they are ordered ascending by date, but the menu has reordered itself after January this year.
It looks like there is a problem with "sort value"
assigned after the “61” value. The next four listings are “255”, then there is a following “62” menu sort.
I’m going to post the full extract from the coding on my adi-menu Textpattern page when I am dragging a dropping:
tramping blogs</a>
<ul>
<li id="rakiura9"><a href="https://tramping.net.nz/rakiura9/">Rakiura blog | August/September 2018</a><input type="hidden" value="27" class="sort_value" name="sort[rakiura9]"></li>
<li id="south-coast-blog"><a href="https://tramping.net.nz/south-coast-blog/">South Coast blog | August 2018</a><input type="hidden" value="28" class="sort_value" name="sort[south-coast-blog]"></li>
<li id="mt-richmond-2-blog"><a href="https://tramping.net.nz/mt-richmond-2-blog/">Mt Richmond Forest Park Circuit blog | April 2018</a><input type="hidden" value="29" class="sort_value" name="sort[mt-richmond-2-blog]"></li>
<li id="stafford-blog"><a href="https://tramping.net.nz/stafford-blog/">Stafford Bay Blog | January 2018</a><input type="hidden" value="30" class="sort_value" name="sort[stafford-blog]"></li>
<li id="hanmer-blog"><a href="https://tramping.net.nz/hanmer-blog/">Hanmer to Taramakau blog | January 2018</a><input type="hidden" value="31" class="sort_value" name="sort[hanmer-blog]"></li>
<li id="n-to-s-blog"><a href="https://tramping.net.nz/n-to-s-blog/">Marlborough north to south blog | December 2017 </a><input type="hidden" value="32" class="sort_value" name="sort[n-to-s-blog]"></li>
<li id="lake-daniell"><a href="https://tramping.net.nz/lake-daniell/">Lake Daniell blog | November 2017</a><input type="hidden" value="33" class="sort_value" name="sort[lake-daniell]"></li>
<li id="mt-fell-blog-2"><a href="https://tramping.net.nz/mt-fell-blog-2/">Mt Fell blog | April 2017</a><input type="hidden" value="34" class="sort_value" name="sort[mt-fell-blog-2]"></li>
<li id="abel-tasman-blog-3"><a href="https://tramping.net.nz/abel-tasman-blog-3/">Abel Tasman blog | Easter 2017</a><input type="hidden" value="35" class="sort_value" name="sort[abel-tasman-blog-3]"></li>
<li id="lewis-lewis"><a href="https://tramping.net.nz/lewis-lewis/">Lewis Pass - Lewis Pass - Nelson | February 2017</a><input type="hidden" value="36" class="sort_value" name="sort[lewis-lewis]"></li>
<li id="kaikoura-boyle"><a href="https://tramping.net.nz/kaikoura-boyle/">Kaikoura to Boyle Village blog | January 2017</a><input type="hidden" value="37" class="sort_value" name="sort[kaikoura-boyle]"></li>
<li id="frew-toaroha"><a href="https://tramping.net.nz/frew-toaroha/">Frew/Toaroha Saddles blog | December 2016</a><input type="hidden" value="38" class="sort_value" name="sort[frew-toaroha]"></li>
<li id="balloon"><a href="https://tramping.net.nz/balloon/">Sylvester/Balloon trip | November 2016</a><input type="hidden" value="39" class="sort_value" name="sort[balloon]"></li>
<li id="wakamarina-blog"><a href="https://tramping.net.nz/wakamarina-blog/">Wakamarina Track blog | October 2016</a><input type="hidden" value="40" class="sort_value" name="sort[wakamarina-blog]"></li>
<li id="alpine-winter"><a href="https://tramping.net.nz/alpine-winter/">Alpine Route, Mt Richmond Forest Park | August 2016</a><input type="hidden" value="41" class="sort_value" name="sort[alpine-winter]"></li>
<li id="blue-lake-blog"><a href="https://tramping.net.nz/blue-lake-blog/">Blue Lake blog | April 2016</a><input type="hidden" value="42" class="sort_value" name="sort[blue-lake-blog]"></li>
<li id="mt-fell-blog"><a href="https://tramping.net.nz/mt-fell-blog/">Mt Fell blog | March 2016</a><input type="hidden" value="43" class="sort_value" name="sort[mt-fell-blog]"></li>
<li id="kahurangi-blog-3"><a href="https://tramping.net.nz/kahurangi-blog-3/">south Kahurangi blog | February 2016</a><input type="hidden" value="44" class="sort_value" name="sort[kahurangi-blog-3]"></li>
<li id="kahurangi-2-blog"><a href="https://tramping.net.nz/kahurangi-2-blog/">Abel Tasman/Kahurangi blog | December 2015/January 2016</a><input type="hidden" value="45" class="sort_value" name="sort[kahurangi-2-blog]"></li>
<li id="ta-blog"><a href="https://tramping.net.nz/ta-blog/">Te Araroa blog | January/March 2015</a><input type="hidden" value="46" class="sort_value" name="sort[ta-blog]"></li>
<li id="tin-range-blog"><a href="https://tramping.net.nz/tin-range-blog/">Tin Range blog | December 2014/January 2015</a><input type="hidden" value="47" class="sort_value" name="sort[tin-range-blog]"></li>
<li id="mt-richmond-blog-3"><a href="https://tramping.net.nz/mt-richmond-blog-3/">Mt Richmond blog | December 2014</a><input type="hidden" value="48" class="sort_value" name="sort[mt-richmond-blog-3]"></li>
<li id="milford-blog"><a href="https://tramping.net.nz/milford-blog/">Kepler/Milford/Routeburn/Greenstone/Caples blog | October 2014</a><input type="hidden" value="49" class="sort_value" name="sort[milford-blog]"></li>
<li id="hollyford-blog"><a href="https://tramping.net.nz/hollyford-blog/">Kepler/Hollyford/Pyke blog | September/October 2014</a><input type="hidden" value="50" class="sort_value" name="sort[hollyford-blog]"></li>
<li id="arthurs-blog"><a href="https://tramping.net.nz/arthurs-blog/">Arthurs Pass blog | September 2014</a><input type="hidden" value="51" class="sort_value" name="sort[arthurs-blog]"></li>
<li id="alpine-route-blog"><a href="https://tramping.net.nz/alpine-route-blog/">Alpine Route/Waiau Pass blog | March/April 2014</a><input type="hidden" value="52" class="sort_value" name="sort[alpine-route-blog]"></li>
<li id="abel-tasman-blog-2"><a href="https://tramping.net.nz/abel-tasman-blog-2/">Abel Tasman blog | March 2014</a><input type="hidden" value="53" class="sort_value" name="sort[abel-tasman-blog-2]"></li>
<li id="st-james-blog"><a href="https://tramping.net.nz/st-james-blog/">St James/Harpers Pass blog | November/December 2013</a><input type="hidden" value="54" class="sort_value" name="sort[st-james-blog]"></li>
<li id="heaphy-blog"><a href="https://tramping.net.nz/heaphy-blog/">Heaphy Track blog | November 2013</a><input type="hidden" value="55" class="sort_value" name="sort[heaphy-blog]"></li>
<li id="abel-tasman-blog"><a href="https://tramping.net.nz/abel-tasman-blog/">Abel Tasman blog | November 2013</a><input type="hidden" value="56" class="sort_value" name="sort[abel-tasman-blog]"></li>
<li id="rakiura-blog"><a href="https://tramping.net.nz/rakiura-blog/">Rakiura blog | August/September 2013</a><input type="hidden" value="57" class="sort_value" name="sort[rakiura-blog]"></li>
<li id="kahurangi-blogs"><a href="https://tramping.net.nz/kahurangi-blogs/">Leslie-Karamea Track blog | May 2013</a><input type="hidden" value="58" class="sort_value" name="sort[kahurangi-blogs]"></li>
<li id="nelson-lakes-blogs"><a href="https://tramping.net.nz/nelson-lakes-blogs/">Nelson Lakes blog | April 2013</a><input type="hidden" value="59" class="sort_value" name="sort[nelson-lakes-blogs]"></li>
<li id="mt-richmond-blog"><a href="https://tramping.net.nz/mt-richmond-blog/">Mt Richmond blog | April 2013</a><input type="hidden" value="60" class="sort_value" name="sort[mt-richmond-blog]"></li>
<li id="larapinta-blog"><a href="https://tramping.net.nz/larapinta-blog/">Larapinta Trail, central Australia blog | April 2012</a><input type="hidden" value="61" class="sort_value" name="sort[larapinta-blog]"></li>
<li id="arahura-blog"><a href="https://tramping.net.nz/arahura-blog/">Arahura/Styx blog | December 2019</a><input type="hidden" value="255" class="sort_value" name="sort[arahura-blog]"></li>
<li id="cascade-blog"><a href="https://tramping.net.nz/cascade-blog/">South Westland to Queenstown blog | January/February 2019</a><input type="hidden" value="255" class="sort_value" name="sort[cascade-blog]"></li>
<li id="nlnp-2018"><a href="https://tramping.net.nz/nlnp-2018/">Nelson Lakes blog | December 2018</a><input type="hidden" value="255" class="sort_value" name="sort[nlnp-2018]"></li>
<li id="angelus-blog"><a href="https://tramping.net.nz/angelus-blog/">Lake Angelus blog | July 2019</a><input type="hidden" value="255" class="sort_value" name="sort[angelus-blog]"></li>
</ul>
<input type="hidden" value="62" class="sort_value" name="sort[blog]"></li>
<li id="ebooks" class="menu_alt_title"><a href="https://tramping.net.nz/ebooks/">tramping publications</a><input type="hidden" value="63" class="sort_value" name="sort[ebooks]"></li>
This seems to narrow down what the issue might be, the sort order, but I have no idea how to rectify this. There are now four items with a 255 sort order.
Maybe it’s because of a limitation of 256 items in my menu?
Or something has occurred with my stuffup with the dragging that has caused a break in the code.
Any thoughts? I guess my menu is just too big.
Best wishes for 2020.
Offline