Jump to content

renobird

PW-Moderators
  • Posts

    1,699
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by renobird

  1. Also: I got all the iOS issues worked out, but I got sidetracked working on styling for the new system notifications module. has error notices no errors or notices
  2. @LostKobrakai, I assume you are using executeDashboard(), excecuteProject(), etc… with this module The current way to check for current status won't work because the path will always be the same /processwire/name-of-page-using-this-process/ So that is why your dashboard item registers as current. I think the only way to resolve this is to enable URL segments for the admin template. You still need to have the executeWhatever() method, but the segments can then be tacked on to the end of the page->url and checked against. *Unless anyone chimes in with a way to get the full page path including the method. So, the solution I have is to turn on URL segments for the admin template, and then update AdminThemeRenoHelpers.php Around line 225: if(is_array($c)) { // $c is moduleInfo nav array $moduleInfo = array(); if(isset($c['permission']) && !$this->wire('user')->hasPermission($c['permission'])) continue; $segments = $this->input->urlSegments ? implode("/", $this->input->urlSegments) . '/' : ''; $class = $currentPagePath . $segments == $p->path . $c['url'] ? 'current' : ''; $title = $sanitizer->entities1(__($c['label'], $textdomain)); $url = $p->url . $c['url']; if(isset($c['navJSON'])) { $navJSON = $c['navJSON']; // url part $moduleInfo['useNavJSON'] = true; } $c = $p; // substitute } I've tested this here, and it seems to be working as expected. I'll test it a bit more this afternoon to see if there are any unintended consequences.
  3. I'll need to experiment with this to see what it breaks. Vertical rhythm needs an absolute unit, but that may not be needed in the case of an admin, so I'll take a look at moving to unitless. I'll look into the static nav issue now. tpr, What browser? I'm not seeing that here.
  4. Sorry all, this is not going to happen today. There is a iOS bug that I can't seem to find; it only happens for non-superusers.
  5. Thanks all. I've got one issue to work out with mobile safari, after that it should be ready. @Pete, I have local copies of your colors that are compatible. I'll send everything to you later today - you can make any additional changes - shouldn't take long at all.
  6. Quick overview of some updates I'll be sending to Ryan tomorrow. New Features: Sidebar saves open/closed state. Sidebar opens/closes with arrow keys. Sidebar toggle icon moved. Search input is now a masthead overlay. It's takes the same number of clicks as before (one) since the input is focused on click. The overlay can be closed with the (x) icon, or the up arrow key. User information is now customizable to any text fields associated with the user template. So you can use fields like a first_name last_name. Custom color schemes can be set in /site/modules/AdminTheme/AdminThemeReno/styles/. These files survive PW updates, so you can easily create custom variations on the theme without having to reinstall it after an update. (Thanks Pete!) Top navigation items are now hookable, so you can add additional single or nested items. Top navigation has quicklinks to ProcessWire resources for Superusers. (forums, docs, github, cheat sheet, etc..) There are other tweaks and fixes here and there, but these are all I can think of right now... Changes to masthead and top navigation Superuser Quicklinks User Information Search Overlay
  7. I've been using the checkbox method and a simple hook for a while. Works quite well.
  8. I'm still working on a few things. Then I need to send a PR to Ryan.
  9. @nico, @martijn, I gotcha covered, although not exactly how you expect. I think you will likey.
  10. Cool. There should be an updated version of this theme on the dev branch next week - assuming I can get time to add a few more things, and Ryan is good with them all. This upcoming version makes it easier to create your own color schemes - for both default and reno. Custom colors schemes are stored under /site/ so they survive PW core updates (thanks Pete!) More details soon
  11. bloomie, Take the plunge! There are a lot of helpful folks here that will chime in to assist you when needed.
  12. theFisher86, Welcome to the forums. There really isn't a simple way at the moment. You can copy the module from /wire/modules/ into /site/modules/ and make changes there. Essentially this is like creating your own custom theme, and since /site/ isn't touched during upgrades, your changes persist. It means you would have to copy any theme changes from /wire/ into your /site/ version. I think it's probably a good idea to add a path to additional color schemes as part of the module config. That way you could add a path like /site/assets/styles/adminThemes/ and have any color schemes in there also available as options. I'll look into that.
  13. @Peter, I might also suggest a simple processModule to create a quick management system for your files. I find that a dedicated admin page for files is easier for users to remember over navigating the page tree. I think you could probably do the same with lister (Maybe need ListerPro?)
  14. I think the repository idea is the way to go if you are referencing the same file in many different pages.
  15. Doh! Somewhere in the back of my mind, I remembered solving this issue with session locking before. session_write_close() is what I needed. I'll post back here with a full solution to keep the topic relevant.
  16. I need to create a progress bar for a long executing csv export. I know how to do all the front end stuff, but I'm encountering some issue with polling the progress, and need some assistance. The hosting environment is preventing me from using the the flush(), ob_flush() process, not sure why. I have an older script that used to work well, but it doesn't now. It might have something to do with apache settings, but I can't track it down. I've been attempting to write the progress to a $_SESSION variable, but I can't seem to get around session locking, so when I try to check the $_SESSION variable via ajax, I get nothing because the script has the session locked until it's done. I can't use web sockets because I need support IE9. I haven't tried writing the progress to a temp file. What are some other options? Suggestions welcome.
  17. I plan to give this all some serious attention next week. I'll get some updates out soon.
  18. renobird

    A note of thanks

    Welcome gemini. Lots of knowledgable and helpful folks here, feel free to ask if you get stuck. Always helps to post small bits of code.
  19. I just dropped in for a quick minute, but wow! I'll look closer at these later tonight when I have time.
  20. Absolutely. I hadn't tested PageTables at all — I'll probably make sure it supports all the current ProFields as well.
  21. I have some updates coming that address scenarios where a field has been removed from a template or deleted all together, and a few other things that make it easier to get/set values from the API.
  22. uhhh, whoa. I'm cautiously excited here.
×
×
  • Create New...