Textpattern CMS support forum

You are not logged in. Register | Login | Help

#311 2019-01-08 00:49:16

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,227
Website

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

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 143
Website

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

#313 2020-01-04 00:44:04

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,227
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Hi Graeme,

Yep, your summation is correct – the sort value is maxed out at 255. Not sure why I picked that limit – it makes the fix a bit awkward (the db column size will need to change, amongst other things).

Am currently preparing for bushfires and will then be travelling. Sorry but it might take a while. I’ll be in contact.

Offline

#314 2020-01-04 09:06:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,657
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

gomedia wrote #320812:

Am currently preparing for bushfires and will then be travelling. Sorry but it might take a while. I’ll be in contact.

Adi, best of luck that you are spared the horrors that many of your compatriots are experiencing at the moment 🙏.


TXP Builders – finely-crafted code, design and txp

Offline

#315 2020-01-04 11:00:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,514
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

gomedia wrote #320812:

Am currently preparing for bushfires and will then be travelling. Sorry but it might take a while. I’ll be in contact.

We have been following them from this side too, as some of our friends there have been afected. It is a nightmare!


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#316 2020-01-04 17:51:27

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,539
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

jakob wrote #320817:

Adi, best of luck that you are spared the horrors that many of your compatriots are experiencing at the moment 🙏.

Adi – stay safe.


…. texted postive

Offline

#317 2020-01-12 20:52:48

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 143
Website

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Adi

Man, I know how bushfire prone the Great Ocean Road area is. Just hope you get some rain through to dampen things down. Seems that’s the only way it will escape.

gomedia wrote #320812:

Yep, your summation is correct – the sort value is maxed out at 255. Not sure why I picked that limit – it makes the fix a bit awkward (the db column size will need to change, amongst other things).

I believe something happened with the drag and drop function that has left a gap between sort value 62 and 255.

You will note that something has happened with the 62 entry in the menu list, that now lies outside the <ul>. 61 is the last one in the correct order. But maybe that is a final sort.

That last line below does not seem to be correctly formatted code. One of the reasons or consequences of this issue is that I am unable to drag and drop any items in the menu list.

This is the code that is messed up, taken verbatim from “view source” in my browser.

<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>

For some reason the plugin is not assigning a correct sort value to those last four, most recent, menu items. They should be at the top of the list. I am unable to drag them into the correct order. They aren’t even in the order I added them.

I’m just wondering if I need to just reinstall the plugin. Or somehow otherwise get the correct sort value assigned.

This is the code for the navigation, but any issue here doesn’t explain the lack of drag and drop.:

<!— navigation blogs—>
<nav role=“navigation”> <txp:adi_menu menu_id=”“ class=“menu” active_class=“current” current_children_only=“1” parent_class=”“ sort=“adi_menu_sort” articles=“1” active_articles_only=“1” article_attr=‘sort=“posted asc” status=“live”’ /> </nav>

Or maybe something has changed with the serving software.

Textpattern version: 4.7.1
PHP version: 5.6.27
jquery: 1.11.2

And now I too am taking off for the hills.

Thanks for this plugin and assistance.

Offline

Board footer

Powered by FluxBB