Jump to content

Beluga

Members
  • Posts

    528
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Beluga

  1. PuPHPet added support for Blackfire: https://github.com/puphpet/puphpet/commit/25626a28c92d0681f3d1751bc864d8603d7bbb45
  2. Ok. I guess CSV import could be used or Batcher together with this to provide dummy content: http://modules.processwire.com/modules/process-field-generator/
  3. @jordanlev would you consider creating a site profile with pre-populated data of that dog-slow reporting tool? Then it could be used as a benchmark and perhaps even lead to improvements I mean, who knows what sort of Neo4j solutions will appear in the future!
  4. Now to think up the most biased comparison in favor of PW re: time to set up
  5. Snowdrift.coop has a cool list of fully-FLO code hosting services.
  6. Just a note that complex reporting seems to be a weak spot performance-wise in PW based on this anecdote.
  7. Cool! This might come in handy on a non-profit site I'm working on. Lots of PW-heads were working on HybridAuth integration, but a fully functional module was not produced yet.
  8. Prestashop will soon even have a secure password hashing method: https://github.com/PrestaShop/PrestaShop/pull/1957#issuecomment-93427902 It only took them 8 years. Actually that PR was even from a community member..
  9. Some more ways: https://processwire.com/talk/topic/4688-forgot-admin-url/
  10. Now I got it: I had multiple languages and most fields had the label only in Finnish while English is default! It's weird, as the label desc says: "If left blank, the name will be used instead." Should say "If left blank, will be blank"..
  11. Updated dev branch today (2.5.26) and noticed that when editing pages, only the Title label is visible. All the other input field labels are missing (the html elements). Edit: Kongondo's blog module posts do not suffer from this.
  12. Sounds cool! I just don't understand, why Neo4j is splintered into an Enterprise and a Community edition. That's a corny thing to do. OrientDB uses the same genetic-experiment-gone-wrong business model, but attacks Neo4j with interesting points. There are a lot of options. Pick your winning horse.
  13. I needed to restrict the loading to a role, though.
  14. Thanks. Your example didn't work as-is (determining if customrole is in the array), so I did some research and came up with this (makes use of jQuery in the CSS loading part): $(function () { var customrole = 'superuser', info = config.AdminCustomFiles; function getRole(){ var arr = info.roles; for(var j = 0; j<arr.length;j++ ){ if(arr[j] == customrole){ return true; } } } if (getRole() === true) { loadCSS = function(href) { var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>"); $("head").append(cssLink); }; loadCSS("/site/templates/AdminCustomFiles/piilota-kielet.css"); } else { console.log("Don't do it!"); } }); CSS for hiding all but default language: .LanguageSupport { display: none; } .LanguageSupport:nth-of-type(1) { display: block; } Edit: switched from :first-child to :nth-of-type(1) so that we can see the Name field when adding a page. Edit 3 years later: the new version changed the JSON data, so info.user.roles is now simply info.roles
  15. How do I use the config data? I want to restrict a CSS style to a role. So I understand I need to put in the Dependencies field: AdminCustomFiles/myconfig.js But what do I put as the contents of that .js file? The example in the module page gives no help: var config = { "AdminCustomFiles": { "adminTheme": "AdminThemeReno" "process": "ProcessPageEdit", "host": "domain.net", "user": { "id": 41, "name": "admin", "email": "user@domain.net", "roles": [ "guest", "superuser" ] }, Why is there a specific user id and a specific process? How can I do it for all users with a specific role and just take the processes defined in the module settings? What if I don't use the Reno theme? Thanks.
  16. Does this mean you could hide specific language tabs in a multi-lang field?
  17. Some pointers on FieldtypeLanguageInterface.
  18. How can we show only the default language field for a certain role and hide the rest of the input options? I'm thinking PageTitleLanguage specifically.
  19. https://github.com/major/MySQLTuner-perl
  20. Thanks for this. Noticed the same problem as Kemal. $flag = $language->image->first->url; did the trick.
  21. Well the problem was that I didn't use my language name! So now I did localUrl('suomi')); and it works.. sorry for the noise.
  22. Using 2.5.24 dev and your module code, in the LanguageSupportPageNames settings "No - Root URL performs a redirect to: /name/", I still get redirected to /en/ every time I access the home page. I don't have AutodetectLanguage installed. In the module info, it has correctly: Hooks to Session->redirect() I have my fi name active for the Home page and this line changed accordingly: $event->arguments(0, $this->page->localUrl('fi')); What might be the problem?
  23. Blank by default would be the best as it's in line with how Datetime behaves. Configurable is fine by me, though, if you have a usecase for populating by default.
  24. Thanks for the module. How can I prevent it from populating the field (with 00:00:00) by default?
×
×
  • Create New...