Jump to content

saml

Members
  • Content Count

    55
  • Joined

  • Last visited

Community Reputation

61 Excellent

About saml

  • Rank
    Full Member

Recent Profile Visitors

3,507 profile views
  1. Just seconding this here, as @kolewu is completely right. This has nothing to do with security AFAIK, but with the ability to install multiple CMSes in a single database. I have in many situations (for customers using obscure ISPs etc) been dependent on the ability to prefix the db tables of different CMSes we ran on the single MySQL database provided by the web hotel.
  2. Since I didn't see it mentioned in any changelogs, I just want to give a heads up to the new ability to import field values via JSON files, which @justb3a implemented in top notch quality after my fiddly proof-of-concept patch . I find this to be a major improvement, since it enables so much easier import of data from e.g. Drupal, so just wanted to make you all aware of it. I have outlined in very broad broad terms how I went about transferring data from a Drupal 7 site, to processwire, in this post.
  3. Thanks a lot @tpr, @cstevensjr and @kongondo! Admin Restrict Branch looks exactly right for us! (Don't know how I missed it) Cheers!
  4. Hi folks, I'm trying to find what is the best strategy for role-based edit access to subtrees of the page tree, as of today, in February 2016? We will have a varied group of editors who all need edit access to their particular pages and subtrees of the page tree. I find it a little hard to find what is the most up to date strategy and information. I found the PageEditPerRole module (http://modules.processwire.com/modules/page-edit-per-role/) that seems to come close, but it is stated to only support PW up to 2.4, and also requires other modules, so I was hesitant to install it. What would you recommend?
  5. Well, I managed to solve this now by just saving the page twice: Once before populating the page's fields, and once after.
  6. I'm creating a general function for batch import, for a site migration, and while looping through fields (field names) to be imported for a page, I need to check whether the field is an image (or other file type), so that it can be imported after the first pave save. What would be the recommended way to check this, with PHP code?
  7. Well, I made a little hack to it now, so it can take field contents as a JSON string on the commandline. Will try it out a bit and see if it fulfills my importing needs. EDIT: Updated link to new pull request.
  8. Btw, just found the wireshell tool ... wow! ... but it doesn't seem to be able to import page content, only creating pages?
  9. Anyone knows a good way to create a php-file that can be executed by php on the commandline (php.exe on windows), to do the same thing?
  10. I realize setting the created date programmatically is very important when migrating content from an old site (I do that now, from drupal). I would very much be able to do that at least from the API. So, is SQL the only option?
  11. Hi, Yeah, I guess probably my problem was in part that I hoped to be able to use a rich text editor together with my solution, since I really like the manual scaling-feature, for automatically creating thumbs. But indeed, it should not be hard to add some kind of solution in the front-end, that parses out any kind of "wrapper-syntax", and formats the code. Didn't think about that ... tend to forget how powerful this aspect of pw is, and how it opens up new approaches to how to solve these problems
  12. I'm using processwire to power my (mostly) coding blog, and have had problem finding a stable solution for including code snippets from various langauges, to display them with proper formatting and syntax highlighting etc. I finally ended up just embedding gists (gist.github.com) since it was the only thing that would not mess up totally with the HTML on the page, etc, but that is some extra work, creating a new gist for every little code snippet you want to show. So, I was wondering what other use for this purpose, and what seems to be the best solution right now?
  13. Awesome, thanks! Seems I have been unneccessarily scared to touch this jquery stuff myself - your example seems simple enough For the reference, I also in fact found a a very simple, light-weight and good-looking (smoothproducts, demo) just a while after posting my question, but I like the ability to be able to roll an own and be in full control, so I'll experiment with both a bit and see which works best. Cheers
×
×
  • Create New...