| [22:04:17] | * farmBOT has joined #farmos |
| [22:35:01] | * JustTB has quit (Quit: Leaving.) |
| [22:48:14] | * JustTB has joined #farmos |
| [05:05:34] | * JustTB has quit (Quit: Leaving.) |
| [06:50:34] | * JustTB has joined #farmos |
| [07:52:35] | <mstenta[m]> | paul121: there are a few potential ways to do this |
| [07:53:17] | <mstenta[m]> | Views has some hooks that can add content to various places |
| [07:53:57] | <mstenta[m]> | https://drupal.stackexchange.com/questions/221435/programmatically-set-v... |
| [07:54:10] | <mstenta[m]> | (That actually uses a theme preprocess hook, not a Views hook - but same idea) |
| [07:55:01] | <mstenta[m]> | That would be putting your custom content (form) into the View header itself |
| [07:55:23] | <mstenta[m]> | But another option would be to use the dashboard pane callback to add a form and a view side-by-side (rather than the form inside the View's markup) |
| [08:10:30] | <mstenta[m]> | > OK, pull request created. It's just your Navigation script, @mstenta - I wanted to be sure I had the workflow ok and all the bits on my machine. |
| [08:10:30] | <mstenta[m]> | kirsten-mc great!! Taking a look now - I'll comment in the PR conversation tab |
| [11:16:36] | <paul121[m]> | > But another option would be to use the dashboard pane callback to add a form and a view side-by-side (rather than the form inside the View's markup) |
| [11:16:36] | <paul121[m]> | ah yea, I thought this might work too. I'll try this too. Thanks! |
| [12:39:58] | <mindcls[m]> | Is there a way to set the default base map layer? I have to switch it every time I login to my site. I can't seem to find where to set Google Satellite or Hybrid as the default. |
| [12:40:45] | <symbioquine[m]> | It should remember which layer you selected previously. |
| [12:40:46] | <mstenta[m]> | @mindcls:matrix.org: it should remember which base map you select, but there's an outstanding issue we are trying to debug |
| [12:41:13] | <mstenta[m]> | https://github.com/farmOS/farmOS-map/issues/65 |
| [12:41:27] | <mindcls[m]> | mstenta: ah ok, good to know that it's not necessarily something I'm doing at least |
| [12:41:36] | <mstenta[m]> | It's been hard to bail down |
| [12:41:37] | <mstenta[m]> | nail* |
| [12:42:21] | <mstenta[m]> | @mindcls:matrix.org: are you self hosting or using Farmier? |
| [12:42:39] | <mindcls[m]> | I'm self hosting |
| [12:43:31] | <mindcls[m]> | Shared hosting server, so it could/does cause me issues on certain things I want/try to do |
| [12:43:48] | <mstenta[m]> | Ok I wonder if there's some correlation there... I think most others who have had this problem are also around hosting. But I can't think why |
| [12:45:57] | <mindcls[m]> | Can't think of what server requirement that I may not have on/available that could block it |
| [12:47:11] | <mindcls[m]> | phpinfo shows it as a fairly typical setup as far as I can tell (been away from programming/webdev for a number of years now) |
| [12:52:47] | <mstenta[m]> | Right. I really can't think of why the server would make a difference |
| [13:00:34] | <mindcls[m]> | I don't think it's a server issue, every refresh it resets the base layer |
| [13:03:01] | <mindcls[m]> | It does the same using FF76 and Chrome83 on Win10, as well as FF76 on Ubuntu19.10 and FF76 Debian10 |
| [13:04:54] | <mstenta[m]> | Question: |
| [13:05:15] | <mstenta[m]> | Go to /admin/config/development/performance |
| [13:05:29] | <mstenta[m]> | Is JS aggregation enabled? |
| [13:06:01] | <mindcls[m]> | No it's not |
| [13:06:18] | <mstenta[m]> | Ok try turning it on... |
| [13:06:44] | <mindcls[m]> | I thought it might have been something from an add-on, but I have absolutely no add-ons in my Chrome and it still managed to mess with things |
| [13:06:44] | <mindcls[m]> | ok, I'll give it a shot |
| [13:09:41] | <mindcls[m]> | nah, soft or hard refresh and it still defaults to no selected base layer |
| [13:10:00] | <mstenta[m]> | Ok was worth a try thanks |
| [13:10:58] | <mstenta[m]> | And just to confirm: does it work here? |
| [13:10:58] | <mstenta[m]> | https://farmOS.github.io/farmOS-map |
| [13:13:45] | <mindcls[m]> | It defaulted to Mapbox Satellite when I loaded that.. |
| [13:14:14] | <mstenta[m]> | That is a standalone demo of the farmOS-map library, which is used in farmOS, but which has the same base layer memory code |
| [13:14:18] | <mstenta[m]> | And if you change to Google and refresh? |
| [13:16:40] | <mindcls[m]> | FF/Linux went back to Mapbox Sat, FF/win and Chrome/win both refreshed fine, just reset zoom levels |
| [13:17:04] | <mstenta[m]> | Ok |
| [13:17:07] | <mstenta[m]> | That's similar to what others have said |
| [13:17:08] | <mstenta[m]> | The demo works |
| [13:17:19] | <mstenta[m]> | Inside farmOS doesn't |
| [13:17:34] | <mstenta[m]> | But it does work for me. I've never been able to replicate, which is part of the reason it hasn't been fixed :-) |
| [13:18:50] | <mindcls[m]> | I cleared all cookies/cache and tried again, FF/linux went back to Google maps for me this time |
| [13:18:58] | <mstenta[m]> | Although interesting that FF/Linux didn't work for you. That's what I use and it works. Could be related to settings/plugins though |
| [13:19:08] | <mstenta[m]> | Oh ok interesting |
| [13:24:23] | <mindcls[m]> | Tried another FF/linux test.. started a new instance of FF with a new clean profile in safe mode. It handled a hard refresh and still shows Google Maps |
| [13:27:39] | <mindcls[m]> | The clean profile doesn't even default to OpenStreetMap (well, not selected in the list) |
| [13:32:23] | <mstenta[m]> | Thanks @mindcls ! I wish I could stay to debug more but gotta watch the toddlers... If you discover anything please comment on the GitHub issue! |
| [13:32:44] | <mindcls[m]> | Thanks for the help.. got me digging deeper now |
| [13:33:32] | <mindcls[m]> | comparing my addon laden FF to a clean one, I'll dig a bit more yet and see if I can be of any help |
| [13:35:17] | <mstenta[m]> | Thank you!! |