Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/01/2017 in all areas

  1. The new ProField sounds amazing! Just what i did not dream of, but would dream of if I could imagine it earlier) I can see my frontpage templates getting sooo much simpler. I am really happy (again) I got my ProFields subscription .
    4 points
  2. See the "https" property of the Template class: https://processwire.com/api/ref/template/ $t = $templates->get("name=admin"); $t->https = 0; $t->save();
    3 points
  3. This week we’ve got a new multi-language email field, a tutorial on how to use file/image files as multi-language fields, plus we introduce a new and unique ProFields module that’s in the works. https://processwire.com/blog/posts/processwire-updates-and-new-field-types/
    3 points
  4. Ryan has a habit of developing features we didn't even know we needed!
    3 points
  5. A bit OT but it is Friday afternoon after all, so it is time to relax a bit Funny clip I've just come accross:
    3 points
  6. Probably a question best answered by Ryan in the pro support board, but this worked for me... // Name of repeater matrix field $matrix_field_name = 'test_matrix'; // Name of matrix type you want to add field to $matrix_type_name = 'type_1'; // Name of field you want to add to matrix type $add_field_name = 'images'; // Get field objects $matrix_field = $fields->get($matrix_field_name); $add_field = $fields->get($add_field_name); // Add field to repeater matrix fieldgroup $matrix_template = $templates->get("repeater_$matrix_field_name"); $matrix_fieldgroup = $matrix_template->fieldgroup; $matrix_fieldgroup->add($add_field); $matrix_fieldgroup->save(); // Associate field with matrix type $matrix_types = $matrix_field->type->getMatrixTypes($matrix_field); $matrix_type_integer = $matrix_types[$matrix_type_name]; $property = "matrix{$matrix_type_integer}_fields"; $field_ids_in_type = $matrix_field->$property; $field_ids_in_type[] = $add_field->id; $matrix_field->$property = $field_ids_in_type; $matrix_field->save();
    2 points
  7. Hello guys, I'm building now my second web-page with ProcessWire and at this moment I get stuck with one error which appears in the homepage. This is fatal error and the content of my page is inaccessible. The error started appear when I transfer my page from local (Ubuntu) server to the web-hosting. Error Fatal error: Uncaught Error: Call to a member function execute() on null in /home/my_domain/domains/sub.my_domain.com/public_html/index.php:55 Stack trace: #0 {main} thrown in /home/my_domain/domains/sub.my_domain.com/public_html/index.php on line 55 I looked at the index.php file It seems that it cannot get ProcessPageView module. How could I fix that? Thank you in advance!
    1 point
  8. Adds a Service Worker to your Processwire site which can be customised. The service worker script itself is heavily based on Jeremy Keith’s work – thank you Jeremy! More information: https://github.com/johannesdachsel/processwire-serviceworker
    1 point
  9. Howdy @jen, and welcome to the forums. First, you can use this RESET to gain access to the admin page. Then we can proceed from there.
    1 point
  10. @Troost Use print_r or var_dump to check $page->children and $child->head_image (before the if statement). Also enable debug if it's not?
    1 point
  11. Hiya Mats, Thanks for responding... Pffffff, what a dumb mistake by me. The field itself was not visable by guests... Now it works again... wheheheheh Thanks for your time anyway!
    1 point
  12. Could you share the complete template code?
    1 point
  13. If you use Tracy you could also dump the object like: bd($page->party_type); It'll save you much time if you know what kind of data you are working on.
    1 point
  14. @rst, when you get 403 or 404 errors after submitting a form then it is usually mod_security that is to blame, as suggested above. You'll need to get it disabled one way or another. If you are on a cPanel host you can sometimes disable it there... ...otherwise you need to put in a support request to your host and ask for it to be disabled.
    1 point
  15. I ended up using a custom request header. Thanks for the link @szabesz Again, thanks to processwire i learned a lot new important stuff about web development in general.
    1 point
  16. Just wondering, is this supposed to be commented out in the template? <!-- echo "<li class='item'><a href='#' data-featherlight='#mylightbox" . $childIndex . "'><img id='mylightbox" . $childIndex . "' src='{$image->url}' class='image'></a><p class='worktitle' alt='worktitle'>$child->title</p><p class='omschrijving' alt='omschrijving'>$child->image_description</p><p class='formaat' alt='formaat'>$child->formaat</p></li>"; --> I am not too familiar with the featherlight gallery, but I noticed an error in the console as well that "prototype" was undedefined in the .js file.
    1 point
  17. Quick note for those following this. As per @Macrura's request above, VPS has received a major upgrade; It can now be used as a normal page field pages' selector or in a 'one-page-per-image' strategy as before. Working on the final release now. Hope to release next week.
    1 point
  18. Maybe party_type is multiple instead of single page select?
    1 point
  19. How much does a gender reassignment surgery cost?
    1 point
  20. Update: working with this setup for a few months, I had quite a few permission related issues which were frustrating. So I decided to do some more research on existing docker projects that are well maintained and bring the features I need. Finally I found http://laradock.io/. I've been using it for 3 months now and I am really happy with it. Very flexible and well maintained set of docker containers. I'm totally happy and can recommend it to devs who are interested in this topic.
    1 point
  21. Is that path correct? If you have only one includes directory change require_once("./includes/functions.inc.php"); to require_once("./functions.inc.php");
    1 point
  22. This might be caused by mod_security. Add the below code on top of your .htaccess file and try again to save the page. <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
    1 point
  23. You can use the cli component of the module to run migrations from the shell. So you could easily add this to a custom script iterating through your projects. I'm letting my Continuous Delivery tool run migrations when deploying.
    1 point
  24. I've recently started to use laravel mix which is again a laravel related tool, which is not limited to usage only with laravel. It's a quite nice wrapper around webpack, which hides all the tedious configuration without denying the ability to customize when needed. When using vuejs it's even better, because it supports .vue files out of the box.
    1 point
  25. Hi, Something like this? https://stackoverflow.com/questions/3124636/detect-ajax-calling-url
    1 point
  26. Since a few days I'm completely addicted to listening to this while working https://www.youtube.com/channel/UC5FUNVH36ebM6ffQd3rvz8g
    1 point
  27. If you want your events index to list all the categories, you could just do thi: $categories = $pages->find("template=category, sort=name"); foreach($categories as $c) echo "<p><a href='{$c->url}'>{$c->title}</a></p>"; If you want to use URL segments to filter the listing of events by category, you could use URL segments with a URL structure like /events/category/cheese/. Then your events index could look for it like this: if($input->urlSegment1 == 'category' && $input->urlSegment2) { $name = $sanitizer->pageName($input->urlSegment2); $category = $pages->get("template=category, name=$name"); if($category->id) { $events = $pages->find("template=event, categories=$category"); foreach($events as $event) echo "<p><a href='{$event->url}'>{$event->title}</a></p>"; } }
    1 point
×
×
  • Create New...