Jump to content

renobird

PW-Moderators
  • Posts

    1,699
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by renobird

  1. I'm migrating a massive project that consists of about 15 business systems (like Martijn's they have no front-end), but the same install also powers a fairly large University level public site. It's just on a dev server for now, but so far we haven't found anything broken. Nothing. Zero. I still can't believe it, but there's a lot that remains to be tested.
  2. Nice to see the ideas here. There are a variety of needs and use cases for the admin, which is why it's nice to have an admin that can be customized so easily. We use both Reno and the default where I work, just depends on what the admin needs to do. The sidebar navigation is extremely useful for many of our projects, but there are times where the default admin is better suited. Some people think cucumbers taste better pickled.
  3. Really looking forward to ProDrafts, and the page tree enhancements are fantastic!
  4. Thanks Steve! The update seems to be working great! There's really no issue with FCN, it was more that I needed the Tag Parser to populate the notification emails with things like: page.myPageField.title page.myPageField.expiration This update makes that possible.
  5. Hey Steve, I haven't had a chance to look into to the test branch, but that would be a cool feature. One thing that I've run into a few times is when using Field Change Notifier is that when it's watching a page field the value is parsed as the page id. Would it be possible to look into adding support for sub-subfields? Examples: {page.page_field.title} {page.page_field.id} {page.page_field.summary} or any other field associated with that page? I modified my local version of Tag Parser to always use $page->title, but there are also times that I need it to send $page->id.
  6. Thank you Ryan! You are churning out the awesomeness at an astounding rate. Thanks to Antti/Avoine for suggesting the nested sub-selector improvements, I'm looking forward to refactoring a few clunky queries once I can officially move to PW 3.
  7. Hey Daniel, The themes are set on a per-user basis as part of your profile, or you can set Reno to be the default for all users by editing your /site/config.php There is also a module that let's you edit config.php from the admin. https://github.com/ryancramerdesign/ProcessWireConfig
  8. renobird

    Avatar for pwired

    The tittle placement is spectacular!
  9. Hey all, I'm on this. I actually never noticed it worked that way because my installs had the page set to published, so it showed in the list of children. For now, the temp fix is to un-hide the tree page.
  10. I'm trying to use this module to dynamically assign a permission that would give access to an admin page. I have a dynamic role called "scholarships", and the criteria are that the user has 2 roles: music, faculty. If they do, then they are given the "scholarships" dynamic role, which has 2 permissions: "scholarships" and "page-view". That should give them access to an admin page that requires the "scholarships" permission, but it doesn't seem to work. Works fine with a traditional role that has the same permissions. Any pointers?
  11. ColorPicker inception. It's a dream inside of a dream.
  12. Hey steveoo, I can't recreate this for some reason. What PW version are you using? I would suggest updating to 2.7.2 (which is currently the dev branch, but I suspect it will probably be the master later this week).
  13. steveooo, OK. I can't recreate that (yet) — but I'll try a fresh install and see what I get.
  14. Hey Steveooo, Do you mean the image variations that you can view/manage as part of the image editor? Meaning, you click the icon with the variation number next to it in the image field header. If so, those seem to be displaying fine here.
  15. Hey johnstephens, How large/complex is the Textpattern site? I moved a bunch of sites a few years back, and they were all pretty simple transfers. I didn't try to write any kind of importer, I was done with the transfers manually faster than I could write the importer.
  16. How stable is this with the current dev (2.6.22).
  17. Hi Ivan, nice catch. I made that change. I'll sent a PR to Ryan in the next few days so he can include an updated version of Reno in the core. In the meantime, you can update your copy. Just swap out the renderTopNav() method in AdminThemeRenoHelpers.php public function renderTopNav() { $items = array(); $class = ''; $user = $this->wire('user'); $config = wire("config"); $adminTheme = $this->wire('adminTheme'); $fieldName = "avatar_field_" . $user->template->name; $adminTheme->$fieldName != '' ? $avatarField = $adminTheme->$fieldName : $avatarField = ''; $avatarField != '' ? $imgField = $user->get($avatarField) : $imgField = ''; $avatar = "<i class='fa $adminTheme->profile'></i>"; // View site $items[] = array( "class" => "", "label" => "<i class='fa {$adminTheme->home}'></i>", "link" => $config->urls->root ); // Search toggle $items[] = array( "class" => "search-toggle", "label" => "<i class='fa fa-search'></i>", "link" => "#" ); // Superuser quick links if ($this->user->isSuperuser()){ $items[] = array( "class" => "superuser", "label" => "<i class='fa fa-bolt'></i>", "children" => array( "<i class='fa fa-life-ring'></i> " . $this->_('Support Forums') => array('http://processwire.com/talk/', 'target="_blank"'), "<i class='fa fa-book'></i> " . $this->_('Documentation') => array('https://processwire.com/docs/', 'target="_blank"'), "<i class='fa fa-github'></i> " . $this->_('Github Repo') => array('https://github.com/ryancramerdesign/ProcessWire/', 'target="_blank"'), "<i class='fa fa-code'></i> " . $this->_('Cheatsheet') => array('http://cheatsheet.processwire.com', 'target="_blank"'), "<i class='fa fa-anchor'></i> " . $this->_('Captain Hook') => array('http://processwire.com/api/hooks/captain-hook/', 'target="_blank"'), ) ); } // Avatar field for user information if ($imgField != '') { $class = 'avatar'; count($imgField) ? $img = $imgField->first() : $img = $imgField; $userImg = $img->size(52,52); // render at 2x for hi-dpi (52x52 for 26x26) $avatar = "<img src='$userImg->url' alt='$user->name' />"; } // User information and logout link. Check for profile-edit permission below. $userItem = array( "class" => "avatar", "label" => "$avatar <span>" . $this->getDisplayName($user) . "</span>", "children" => array( "<i class='fa $adminTheme->signout'></i> " . $this->_('Logout') => $config->urls->admin . "login/logout/" ) ); // if user has profile-edit permission add and edit link to the userItem['children'] array. if ($this->user->hasPermission('profile-edit')){ $profileEditLink = array("<i class='fa fa-user'></i> " . $this->_('Profile') => $config->urls->admin . "profile/"); $userItem['children'] = array_merge($profileEditLink, $userItem['children']); } // add the userItem to the menu $items[] = $userItem; return $this->topNavItems($items); } I'm not sure about the translation issue. I will try to look into it later today.
  18. Hi Sradesign, Welcome to the forums. I agree with Mike, I'm not really sure why you would need Bootstrap.
  19. I've had this happen a fair bit as well. In my case it was 2 specific editors that missed it just about every time. I worked with them directly, and that resolved the problem in the short-term.
  20. You can add things to Process Modules fairly easily. In the case of ProcessDashboard, I think you just add your custom code to dashboard.php A basic example: // create a button $addNew = wire('modules')->get('InputfieldButton'); $addNew->attr('id+name', 'add_new'); $addNew->addClass('top_button'); $addNew->attr('value', "Add New"); $addNew->attr('href', 'add/?parent_id=1'); // render the button on the page somewhere. <?php echo $addNew->render();?>
  21. GosuSan, Welcome. I'm not sure of the context of those examples. I think Soma's original post has them as examples that are commented out. They are just meant to show alternate ways of accessing the values. Probably at different points in the submission process, depending on what you want to do. Accessing the values from $form->get("field_name")->value means the value already exists in the form object, so you are getting the values either after a successful submission, or at some point during the submission process. Perhaps for doing some other kind of check/validation (see the hotmail error in the first post example). So they both work, but it just depends on at what point you are asking for the values.
  22. There's also this handy little module that some dude made — keeps a log of changes made to fields on a per-template basis.
  23. Untested, but you could use trackChange. public function init() { $this->addHookAfter('Pages::saveReady', $this, 'hookPageSave'); } public function hookPageSave($event) { $page = $event->arguments[0]; // check template if ($page->template == "nepremicnine-vnos") { // If there was a change to the price field if ($page->trackChange('price')) { // get the old page from the DB (contains the previous value of 'price'); $old = $this->pages->get($page->id); // set the value of priceBefore to previous value of price. $page->priceBefore = $oldPage->price; } } }There is no need to do a save(), as the hook is just editing the values of the page object right before it's saved.
  24. @rickblackdog — glad you got it sorted out.
×
×
  • Create New...