Jump to content

mmc

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by mmc

  1. Finally I've managed to migrate the site. In principle it is very easy and very close to the procedure @teppo has described. But there are some pitfalls. After the initial migration, I couldn't even call the pw admin site. Both the admin and the web site produced error messages. It took me a while to find out that I had to edit the .htaccess file as well. My prod server didn't work with some dev server settings. Last issue was that some pictures had absolute paths instead of relatives. No idea what has caused this. A bug or my mistake ? No clue, but they were of course not accessible from the prod server. I changed the wrong paths manually on the prod server and that's pretty much it. Site works now. Next time I'll try the duplicator app. Maybe that will work a bit smoother.
  2. Indeed, very good point. I missed this completely. Code changed, thanks.
  3. I'm using in my current project the following snippet. $root = $pages->get("/"); $children = $root->children(); $children->prepend($root); foreach($children as $child) { DoSomething1 ... if ($child->numChildren(true) && $child->id > 1) { DoSomething2 ... } } Is it safe to exclude the root page from the DoSomething2 branch with $child->id > 1 ? Or in other words, does the root page always has the ID 1 ?
  4. My current Processwire project has been finalized and tested on a private development server. I'd like to publish the entire site now and copy/move it to the production server. I haven't found that much about this topic so I expect that it must be pretty easy. What is the best procedure to achieve this ? I can of course move the site folder but what's with the database ? Maybe other steps are involved as well ? Regards, Michael
  5. In the meantime I've solved this in the CSS. It's pretty easy and works perfectly. On the other hand I've learnd some alternatives here and that's always useful. Thanks.
  6. Unfortunately not. It is presently accessible from our intranet only.
  7. Hi Robin, thanks for taking care of this problem. I've changed my code and modifying the rows property works well. However setting the columnWidth property has no effect at all. The width seems to have a standard value that cannot be changed. I've also added a textarea field for comparison reasons but it shows exactly the same behavior. Any ideas left ? I'll try to solve this in the css.
  8. Hi, I'm currently learning PW and have almost finalized my first site though I'm struggling with some issues. I have to say PW is an amazing piece of software. According to soma's example code, I've created a simple contact page that uses a ckeditor input field. The form works, but I have to change the size of the ckeditor field in order to align it with the other fields. The InputFieldCKEditor class does not seam to have a size attribute. So how can I change the width and height of this field ? Thanks a lot, Michael
×
×
  • Create New...