-
Posts
58 -
Joined
-
Last visited
saml's Achievements
Full Member (4/6)
61
Reputation
-
Thanks all for the input! ? I ended up re-creating the site from scratch and doing the (now finished) import workflow one final time (and for any subsequent updates via API made sure to just update existing pages when possible). It worked OK for me as I didn't have too much manually set up pages, so I could redo it all in under an hour anyways.
-
saml started following Best strategy for role-based edit access to subtrees, in 2016? and Search function on Windows
-
saml changed their profile photo
-
I have a case where I have been troubleshooting a page import script (via commandline) by repeatedly importing a bunch of pages (a bit over a hundred), deleting them, adjusting my import process and then redoing this, over and over. The result is now that page IDs are starting to be up over 10 000. Not an actual problem of course, but it would somehow look nicer if those early pages had page IDs starting from a lower number. Thus I was wondering if there is a way to "restore" the increasing page ID number to start by a low number, when deleting pages? Can it be done through the API somehow, or would I need to dive in and fix the AUTO_INCREMENT value in the database, and would that risk to lead to other problems?
-
Custom string in names of database tables
saml replied to Michal Gancarski's topic in Wishlist & Roadmap
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. -
wireshell - an extendable ProcessWire command line interface
saml replied to marcus's topic in API & Templates
@justb3a: Awesome! -
wireshell - an extendable ProcessWire command line interface
saml replied to marcus's topic in API & Templates
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. -
Best strategy for role-based edit access to subtrees, in 2016?
saml replied to saml's topic in General Support
Thanks a lot @tpr, @cstevensjr and @kongondo! Admin Restrict Branch looks exactly right for us! (Don't know how I missed it) Cheers! -
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?
-
Recommended way to check if the value of a field is an image or not?
saml replied to saml's topic in API & Templates
Well, I managed to solve this now by just saving the page twice: Once before populating the page's fields, and once after. -
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?
-
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.
-
Btw, just found the wireshell tool ... wow! ... but it doesn't seem to be able to import page content, only creating pages?
-
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?
-
-
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?