Graham Quince Posted March 23, 2018 Posted March 23, 2018 The brilliant @Simon Law has built a new widget which adds a site's menu to a page, to save us all from having to do this manually using text widgets. You can download this from the showcase page: https://www.frogeducation.com/community/frogcode/frogcode-showcase/navigation 1
pconkie Posted August 28, 2018 Posted August 28, 2018 (edited) Great widget @Simon Law but I don't think it works on iOS - at least I can't get it to work (desktop browsers all fine). It is this bit that fails on iOS..... '.nav-navigation-container li a {click}': function(el, ev) { $menu = this.element.closest('.sites_core').find('.sites_menu'); $menu.find('a[data-uuid='+el.attr('data-uuid')+']').click(); }, Safari on iOS inspector and Chrome inspector report slightly different objects if you console out $menu and $menu.find('a[data-uuid='+el.attr('data-uuid')+']'), so perhaps this is why? I found that this fixed the issue... '.nav-navigation-container li a {click}': function(el, ev) { $menu = this.element.closest('.sites_core').find('.sites_menu'); $menu.trigger('sites.changeLocation', { uuid: el.attr('data-uuid') }); }, Is this 'safe' to use? Paul Edited August 28, 2018 by pconkie
Simon Law Posted August 29, 2018 Posted August 29, 2018 21 hours ago, pconkie said: Great widget @Simon Law but I don't think it works on iOS - at least I can't get it to work (desktop browsers all fine). It is this bit that fails on iOS..... '.nav-navigation-container li a {click}': function(el, ev) { $menu = this.element.closest('.sites_core').find('.sites_menu'); $menu.find('a[data-uuid='+el.attr('data-uuid')+']').click(); }, Safari on iOS inspector and Chrome inspector report slightly different objects if you console out $menu and $menu.find('a[data-uuid='+el.attr('data-uuid')+']'), so perhaps this is why? I found that this fixed the issue... '.nav-navigation-container li a {click}': function(el, ev) { $menu = this.element.closest('.sites_core').find('.sites_menu'); $menu.trigger('sites.changeLocation', { uuid: el.attr('data-uuid') }); }, Is this 'safe' to use? Paul 22 hours ago, pconkie said: $menu.trigger('sites.changeLocation', { uuid: el.attr('data-uuid') }); Hi Paul, yes, that could be the way forward. the menu click event calls the 'sites.changeLocation' trigger, so we are just circumventing calling the menu tab.. 1
ADT Posted June 4, 2020 Posted June 4, 2020 Anyone else notices this is bust?? When trying to set a sublist!! @pconkie @Simon Law @Graham Quince
ADT Posted June 5, 2020 Posted June 5, 2020 Cough... i know it hasn't been that long yet... but i kind of need to know if i have to manually set up the links or if the widget can be fixed???? Or worse still the issue is me!! ? Thanks!!@Simon Law @Graham Quince & @adamw (You seam to be the widget gatekeeper!! ?)
ADT Posted June 9, 2020 Posted June 9, 2020 Still nothing.... not even a yep its broke??? @Graham Quince
pconkie Posted June 10, 2020 Posted June 10, 2020 That didn't take 10 minutes! Sorry - the widget works fine for me. Maybe you are on a different version of frog from me?
ADT Posted June 10, 2020 Posted June 10, 2020 16 minutes ago, pconkie said: That didn't take 10 minutes! Sorry - the widget works fine for me. Maybe you are on a different version of frog from me? Hmmmmm..... it works.... just cant drill down to a sublist??
ADT Posted June 10, 2020 Posted June 10, 2020 6 hours ago, pconkie said: That didn't take 10 minutes! Sorry - the widget works fine for me. Maybe you are on a different version of frog from me? So it works... untill you add the bit to only show the subject areas..... even @Graham Quince had half a look and agreed it didn't work!!
Graham Quince Posted June 10, 2020 Author Posted June 10, 2020 6 hours ago, pconkie said: That didn't take 10 minutes! Sorry - the widget works fine for me. Maybe you are on a different version of frog from me? Now i'm really confused. Went to check both your version numbers and I can't see a navigation widget on Backwell's Frog. You do have a menu widget up to version 27. Is that your own @pconkie ?
ADT Posted June 10, 2020 Posted June 10, 2020 25 minutes ago, Graham Quince said: Now i'm really confused. Went to check both your version numbers and I can't see a navigation widget on Backwell's Frog. You do have a menu widget up to version 27. Is that your own @pconkie ? I bet @pconkie will have just made his own.... in fact i think hes working on Toad v1!!! ?
pconkie Posted June 10, 2020 Posted June 10, 2020 1 hour ago, Graham Quince said: Now i'm really confused. Went to check both your version numbers and I can't see a navigation widget on Backwell's Frog. You do have a menu widget up to version 27. Is that your own @pconkie ? No, that’s Simons widget (with a few modifications). Why does mine do what @ADT wants?!
ADT Posted June 10, 2020 Posted June 10, 2020 4 minutes ago, pconkie said: No, that’s Simons widget (with a few modifications). Why does mine do what @ADT wants?! The one I've got should do what I want according to @Graham Quince's video!! ?
pconkie Posted June 10, 2020 Posted June 10, 2020 3 hours ago, ADT said: So it works... untill you add the bit to only show the subject areas..... even @Graham Quince had half a look and agreed it didn't work!! Yes, I see the same error now. Assume you have added "Subject Areas" to the START NAVIGATION PATH preference? Looks like a library the widget uses has been removed. If so might be a quick fix by loading the library on your dashboard before any pages with the widget load. Then at least it works until a proper fix is pushed out.
ADT Posted June 10, 2020 Posted June 10, 2020 2 minutes ago, pconkie said: Yes, I see the same error now. Assume you have added "Subject Areas" to the START NAVIGATION PATH preference? Looks like a library the widget uses has been removed. If so might be a quick fix by loading the library on your dashboard before any pages with the widget load. Then at least it works until a proper fix is pushed out. And in layman's terms?
pconkie Posted June 10, 2020 Posted June 10, 2020 I will give you some code to put in a html widget on your dashboards It will make it work again Pester frog for a proper fix though...
ADT Posted June 10, 2020 Posted June 10, 2020 1 minute ago, pconkie said: I will give you some code to put in a html widget on your dashboards It will make it work again Pester frog for a proper fix though... See thats what i hope you would say... Hey you know me... when do i ever stop pestering Frog!! ? You coming to this years virtual conference??
pconkie Posted June 10, 2020 Posted June 10, 2020 I've found and loaded the missing library, but there are some other issues which I can't figure out, sorry. Maybe it's never worked or more likely the library has changed the way it works. For Simon: searching the json for the navigation start doesn't return any nodes. Looks like the xpath is wrong, I've tried changing it but i'm getting an invalid XPath error.
ADT Posted June 10, 2020 Posted June 10, 2020 1 hour ago, pconkie said: I've found and loaded the missing library, but there are some other issues which I can't figure out, sorry. Maybe it's never worked or more likely the library has changed the way it works. For Simon: searching the json for the navigation start doesn't return any nodes. Looks like the xpath is wrong, I've tried changing it but i'm getting an invalid XPath error. Thanks for trying... I guess its back to making a manual navigation list!!
ADT Posted June 11, 2020 Posted June 11, 2020 13 hours ago, pconkie said: I've found and loaded the missing library, but there are some other issues which I can't figure out, sorry. Maybe it's never worked or more likely the library has changed the way it works. For Simon: searching the json for the navigation start doesn't return any nodes. Looks like the xpath is wrong, I've tried changing it but i'm getting an invalid XPath error. @Simon Law @Graham Quince @adamw Any help??? ?
ADT Posted July 13, 2021 Posted July 13, 2021 @Graham Quince did we ever fix this and how come the link no longer works?
Graham Quince Posted July 13, 2021 Author Posted July 13, 2021 Rather than try to fix Simon's widget, I've retired it and added in these features to the Page Headlines/Menu widget. It should do the same job. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now