Jump to content

adrian

PW-Moderators
  • Posts

    10,902
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by adrian

  1. What about this solution. It adds the name field to the Content tab, but collapses it. That way it's still available to the user if they need it, but you can still control the renaming options (including manual editing) with PageRenameOptions. RestrictTabView.module
  2. @usualCommission - thanks for sharing, but I am curious did you see @netcarver's module: Was there something that didn't suit your needs?
  3. Yes of course - not sure why that didn't occur to me I have replaced those arrows with FA icons for now. I am loading FA for the PW Info panel anyway. FYI - I am a huge SVG fan, but I thought for simple icons like this UTF8 icons would be simpler. Maybe I'll revamp this at some point, but this will do for now.
  4. Great! One thing that's bugged me for a while now is how those back/forward history buttons look on Windows. This is what they look like on a Mac: Do you by chance now of a UTF8 arrow that looks ok on both OSes?
  5. Interesting - I had been testing on the frontend of my site and hadn't seen this. I just checked on the backend and could reproduce it. Can you please try the latest version and let me know.
  6. Thanks @Robin S - I have made lots of tweaks to the css for both the Console and SnippetRunner panels and I think they are both much improved and of course now support width resizing. I have also set the default widths to 1200px, rather than full width which I think will be much nicer in general. Anyway, please take a look and let me know what you think.
  7. I knew someone would say this I'll look into it - it's disabled at the moment because I had initial issues with the snippets section on the right overlapping with the code/results on the left. It shouldn't be hard to fix, but was short on time. If you're bored Actually, what those both really need is a way to collapse that right sidebar - at least the Console panel does - maybe not the SnippetRunner?
  8. Please try this version of RestrictTabView. It puts the name fields onto the Content tab the PW core way, rather than hacking them hidden. I am out of time right now so not sure if this is really a friendly solution, but I think it's the only robust one when working with ML sites without a lot more work. Anyway, let me know how it goes. Thanks! RestrictTabView.module
  9. Any chance you are running the RestrictTabView module as well? It looks like there is a conflict. I'll see if I can fix that, but it would be good to know if that's your issue as well.
  10. @Macrura - the fix is available in the latest version. The other major update to this version is support for resizable panels - there is now a resize handle at the bottom right of each panel so you can manually size to suit your needs. This is especially useful when you have one of the larger panels open (like the Field List & Values section of the Request Info panel) and it's taking up the entire screen and you want to compare values in the panel with what is on the page - now you can manually resize to fit where you want. Also, the Tracy core has started refactoring lots of code to use ES6, so those changes are being incorporated as well. Let me know if you come across any issues with this new version!
  11. Hey @joshuag - firstly I wanted to send some kudos your way - I feel like I've been complaining lots in my last few posts I have been playing around with RenderList, RenderEvent, RenderCalendar etc, and the backend Calendar views and they really are awesome - thanks for all the hard work! I do have a request though - I have been looking at the rrule in the json and wondering if you'd consider adding a helper to parse the rule into plain english. I'd love to be able to output this: WKST=MO;FREQ=MONTHLY;DTSTART=20180402T100000Z;INTERVAL=1;BYDAY=TU;BYSETPOS=2;UNTIL=20180428T235900Z as: Every second Tuesday from 10 am to 2 pm from April 2nd, 2018 till April 28th, 2018 Do you have any thoughts on this? Is there already an inbuilt method that I missed that would help with this? Thanks again!
  12. Sorry, I understand my mistake on this. It needs: Although I still don't know why the dateFormat is not being respected in the output.
  13. Looking at this all again now. I am working with manually created events (so there aren't any complications with API import) and I am still confused. This is what I set up: $recurme->renderEvent($page, array('dateFormat' => 'M d, Y @ g:i a')); results in: Error: Trying to get property of non-object on line: 682 of MarkupRecurme.module If I do: you can see that the "time" is off by an hour - probably a timezone issue, but how can I manually output something like: March 13th - March 30th, 2018 10:00 am - 2:00 pm This sort of output I am sure is quite common. The problem is that end_date: 1522562399 is 2018-03-31 11:59 but the event only goes until the 30th. So how do I get the 30th - do I have to parse UNTIL from rrule, or can do take end_date and subtract one day - what is the reliable way to get the actual end date? Sorry if I am being stupid - I can't believe I am the only person to come across these issues, but I don't think I am missing anything - I think the module just needs more properties with things like actual start date, start time, end date and end time so we can easily output custom formats. Let me know if you want to spend a little time on a live chat/call about this. Thanks!
  14. Thanks @Macrura - knowing the version number helped me track it down. It only happens in Production mode. I have a fix in place. I am working on some other updates at the moment, so I'll release this fix with those a little later today. Thanks again!
  15. I doubt it's a common scenario, but I have never seen a PW fieldtype work this way - normally you just call $page->fieldname so it's weird to get used to parsing an entire page to $recurme.
  16. What version of Tracy are you running? When you say "but not any source" do you mean that lime 89 is blank? That's what I am seeing on the latest version. Can you provide the d() or bd() call that is triggering the warning?
  17. Sorry, me again When I create a new event through the admin and it's a non-recurring event, it doesn't store the enddate: {"startDate":1522971420,"endDate":false,"allDay":false,"timeEnd":"08:00 pm" But you have no API method for getting the end time directly in your API calls (at least not that I can see) - what am I missing?
  18. Ok, more details:If I import a date, the json initially looks like this: {"startDate":1520956800,"endDate":1522440000,"allDay":false,"timeEnd":"02:00 pm","dates":["W11/13/Tue/Mar/2018","W11/14/Wed/Mar/2018","W11/15/Thu/Mar/2018","W11/16/Fri/Mar/2018","W11/17/Sat/Mar/2018","W11/18/Sun/Mar/2018","W12/19/Mon/Mar/2018","W12/20/Tue/Mar/2018","W12/21/Wed/Mar/2018","W12/22/Thu/Mar/2018","W12/23/Fri/Mar/2018","W12/24/Sat/Mar/2018","W12/25/Sun/Mar/2018","W13/26/Mon/Mar/2018","W13/27/Tue/Mar/2018","W13/28/Wed/Mar/2018","W13/29/Thu/Mar/2018","W13/30/Fri/Mar/2018"],"excluded":[],"active":true,"showResults":false,"rrule":"WKST=MO;FREQ=DAILY;DTSTART=20180313T100000Z;INTERVAL=1;UNTIL=20180330T140000Z"} Then if I open the page in the admin and save the page (without changing anything), it then looks like this: {"startDate":1520960400,"endDate":1522479540,"allDay":false,"timeEnd":"02:00 pm","dates":["W11/13/Tue/Mar/2018","W11/14/Wed/Mar/2018","W11/15/Thu/Mar/2018","W11/16/Fri/Mar/2018","W11/17/Sat/Mar/2018","W11/18/Sun/Mar/2018","W12/19/Mon/Mar/2018","W12/20/Tue/Mar/2018","W12/21/Wed/Mar/2018","W12/22/Thu/Mar/2018","W12/23/Fri/Mar/2018","W12/24/Sat/Mar/2018","W12/25/Sun/Mar/2018","W13/26/Mon/Mar/2018","W13/27/Tue/Mar/2018","W13/28/Wed/Mar/2018","W13/29/Thu/Mar/2018"],"excluded":[],"active":true,"showResults":false,"rrule":"WKST=MO;FREQ=DAILY;DTSTART=20180313T100000Z;INTERVAL=1;UNTIL=20180330T140000Z"} Notice the change in the startDate and endDate stamps as well as the fact that "W13/30/Fri/Mar/2018" is removed after saving. Help
  19. Even more confusion. Take these examples - why does the value of enddate vary depending on how I get it?
  20. @joshuag - I am also confused about the output of endDate - it's always a day after the specified end date - is this for some reason intentional? It seems confusing to me. Note that importing using the script you PM'd me is also problematic with this "bug" - if you provide an end date, the end date shown in the field edit dialog is one day before the end, but when you output it via the API it returns the end date I specified on import, so it's quite confusing to the editor.
  21. Hey @joshuag - I am quite confused about calling dates via the API. From the docs it looks like I should do: $recurme->event($page)->start_date; but what if I have more than one recurme field on the page? I am tempted to parse it myself like this: json_decode($page->event_dates)->startDate; because this way I can get the start date from my selected "event_dates" field. However I am sure I am missing something in how this is meant to be used Any tips please?
  22. The issue that @Robin S was having has been fixed in the latest version - seems like I wasn't seeing it because I am running PHP 7.2, but didn't investigate that too thoroughly. Thanks again Robin for reporting this and for access to test and diagnose it!
  23. Are the other languages active? on the settings tab of the page? You should set the status for each language to active during the import. Or after the fact you can do with the AdminActions module's "Page Active Languages Batcher" feature.
  24. Not saying it's a reason to switch, but it does support xlsx whereas that appears to require the paid version aggrid.
  25. True - it does define it, even though I don't think it actually ever uses it, but that explains why it's being calling that file
×
×
  • Create New...