Jump to content

SiNNuT

PW-Moderators
  • Posts

    1,011
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by SiNNuT

  1. The 'roles' field is of type 'page' and isn't supported by ImportPagesCSV out of the box. If you want it to show up you need to add something to the modules fieldtype array: 'FieldtypePage', // add this line I haven't tried it myself but nik has, so courtesy nik. For more info you should read his comment in this thread: http://processwire.com/talk/topic/383-module-import-pages-from-csv-file/?p=21476 Also pay attention to his words on how to reference the roles in your csv file. In this case i think it would be best to look up the id's of the roles you've defined and put them in your csv (find and replace, you know the drill). In case you don't know: you can look up the page id's of the roles in a couple of ways but hovering the edit link and looking at the status bar of your browser is easiest;
  2. I can't recall, maybe there was a fieldset field in the default installation of 2.2. But, like Wanze said, you can create as many fieldsets as you like.
  3. SiNNuT

    All Pages

    Is this the part you're looking for?: wire\core\Sanitizer.php: 427 // disallow some characters in selector values 428 // @todo technically we only need to disallow at begin/end of string 429: $value = str_replace(array('*', '~', '`', '$', '^', '+', '|', '<', '>', '!', '='), ' ', $value);
  4. (I'm not familiar with a Google Geo IP module and can't seem to find it on the modules section.) To conclude; bear in mind that in any real scenario you would probably want to give your imported users 1 or more specific roles (something other than guest) and atm this is not possible with ImportPagesCSV. I think maybe you would be better off making a user import script with PW api, unless i'm missing something obvious in the the capabilities of ImportPagesCSV.
  5. Technically 'name' isn't a field but a value stored in the name column of the pages table. It has to follow certain rules (Any combination of letters (a-z), numbers (0-9), dashes or underscores (no spaces).), because name will be (part of) the URL. Normally, upon first manual entry 'name' is automatically converted from the input of the 'title'. In case of the CSV import module the title field is required, name is not and will be set based on the title value. Just did a quick test: Added 'title' field to the user template, and then also added a title column in a CSV. No need to have 'name' in your csv. This csv data imported correctly: title Tester 2 Tester 3 which results in users with names tester-2 and tester-3, and titles as in the csv. The problem i see is that there is no way to set the roles, because FieldtypePage isn't supported by ImportPagesCSV. The weird thing is, when importing the users the module doesn't complain and from the overview screen on the Users page it would seem they got guest role, but when you go edit an imported user, and/or look in the datebase no role has been set.
  6. You do realize that the section this question is posted in is called: So this already seems like a fit 'channel' for these types of questions. Maybe it could be managed better, i don't know, but that's also a lot of work. I agree that some sort of FAQ for beginners could be a useful resource.
  7. I'm glad that you like it Manol, does this mean this was the easy solution i suspected, remove HTML Entity Encoder from the field formatter settings? Depending on the source of the html and how you work with it you might consider doing some purifying on the contents though ( http://processwire.com/talk/topic/3005-module-html-purifier/ )
  8. The only question i see in the OP is "Anybody using WP next or besides PW ?" To which the obvious answer is: Doh, a lot. As for the rest of the links and propaganda i cba, too many flaws and smells of propaganda. BTW, According to my own studies PW now owns 23,67 procent of the interwebs, so eat that Wordpress (no h8 toward TS)
  9. That should be very possible. First look at the csv file you are throwing at it, then look at any possible formatters you apply to the field in question. It seems like some html entities problem. (tip: for html contents don't apply formatters?)
  10. Put it on Githhub again..https://github.com/SiNNuT/countries/ Not actively maintained, but i don't think there were a lot of new countries the last year.
  11. I haven't used it myself but there's also http://modules.processwire.com/modules/process-date-archiver/ if that something you were looking for. Personally i find the notion of an archive in the web world a bit confusing, because most sites are already archives in itself.
  12. So updating to the latest (dev branch) solved things or did they cause your problems?
  13. There have been several commits to the dev branch the last couple of days to fix issues with pagination and language support. Upgrade to see if this helps, or if you've already done so maybe your problems come from the last commits. https://github.com/ryancramerdesign/ProcessWire/commits/dev
  14. I agree with you that it seems like a good idea to incorporate a validation component, that can be used flexibly within fieldtypes, inputfields or even on the front-end. On the admin side there even could be some UI to defining validations etc. Something like http://documentup.com/Respect/Validation/ seems like a nice one, but i don't know if that would work with PW.
  15. It's good to realize that not every available function is on the cheatsheet. In this particular example i think i read it in the commit message. You can see that it was added 20 November 2012. I follow Processwire's github repository and every once in a while i pull in the changes and scan through the commit messages. A great way to keep up to date on the latest and greatest. Apart from that you can also just look through the PW source. Ryan has commented everything nicely and it's not that hard to understand what most things do. And of course always read carefully through the official release notes, which are very detailed. You could have read about wireRelativeTimeStr in there as well http://processwire.com/about/news/introducing-processwire-2.3/#newfunctions
  16. @alanfluff Maybe you already know but for at least a couple of months (half a year?) now there is the function wireRelativeTimeStr in PW itself which allows for stuff like that. Haven't used it myself and maybe that Flourish function is somehow better or a different beast altogether but it is easy to overlook this kind of thing in PW. For reference: http://processwire.com/talk/topic/3597-how-to-display-relative-dates-in-pw/?hl=relative https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/core/Functions.php#L292
  17. Glad you got it solved. Is there any chance your local environment is Windows? Because i seem to recall that with MySQL on Windows by default table names are stored lowercase on disk and is case insensitive on name comparisons. That would explain why it did work for you locally but not on your live server, which most likely runs on some flavor of *nix. Regarding apeisa's question; i would indeed opt for lowercasing db table names.
  18. Looks like the database table for the redirects module is missing. Try to reinstall the module or maybe manually create the table ProcessRedirects, set up like this: https://github.com/apeisa/ProcessRedirects/blob/master/ProcessRedirects.module#L326
  19. Nice job. The Yahoo Wetter thingy seems to be failing atm. Takes a long time to connect to query.yahooapis.com.. and then does not render anything in the wetter widget.
  20. I definitely like your thinking here and agree that a lot of end users will benifit more from this kind of GUI/Popup approach for added functionality. On the other hand i think that sometimes tag replacement works very well.
  21. SiNNuT

    Hanna Code

    Nice addition to the growing collection of very useful modules!
  22. A newly released CSS library from the folks at Yahoo!: http://purecss.io/ There already are a gazillion out there but this does seem like a pretty neat CSS baseline for some projects.
  23. Is there any chance that you've got template output caching enabled on the template that is giving you problems?? Because that would be the only way i can think of that POST variables would be ignored (or at least for guest users/not logged in), meaning it would just show the cached version with GET after submitting the form, possibly leaving one very puzzled. Just like Soma i can't reproduce with you test code, everything works as expected for me. Allowing URL segments doesn't influence POST variables getting through.
  24. I would have never figured that out.... i think it would be a good addition to http://wiki.processwire.com/index.php/Module_Creation Maybe also a mention in Module.php in core? - edit - it's in Process.php, should learn about process modules
  25. Of course, stupid me..i will try to come up with a solution. Anyways i was wondering how you were able to move the page out of the admin tree, because this shouldn't be possible; the Import Pages From CSV page has the template 'admin' and this template only allows parents with admin template.
×
×
  • Create New...