• Content count

  • Joined

  • Last visited

  • Days Won


fbg13 last won the day on June 24 2017

fbg13 had the most liked content!

Community Reputation

350 Excellent

About fbg13

Recent Profile Visitors

1,428 profile views
  1. fbg13

    According to the image above. // loop over repeater items // repeater is the name of my repeater field foreach ($page->repeater as $r) { // person is the name of my page ref field for selecting persons // can hold a single page (can be set in field's settings, details tab) echo $r->person->title, " "; // skills is the name of my page ref field for selecting skills // can hold multiple pages so we have to loop (can be set in field's settings, details tab) foreach ($r->skills as $s) { echo $s->title, " "; } // or use eq echo $r->skills->eq(0)->title, " "; echo $r->skills->eq(1)->title, " "; } // outputs // Jim Programmer Designer Programmer Designer
  2. fbg13

    One way to do something like that is with the repeater field. You have a repeater field and the repeater has two page ref fields (people, roles). And you repeat the fields for every person. The way i described in my first comment the roles field would go to the people template, so on the video page you would only have the people field. You add a person and then click on it, a modal opens to edit the persons page where you can set the role.
  3. fbg13

    @neosin After you select asmselect as your input field type, check the "Settings specific to “asmSelect”" below. There you have "Link selected pages to page editor?" that lets you open the selected page in a modal and edit any fields that page has. You can also create new pages from the page ref field (check the "Allow new pages to be created from field?" option).
  4. fbg13

    phptherightway.com hackingwithphp.com developer.mozilla.org/en-US/docs/Learn/JavaScript
  5. fbg13

    $first = $selectWatch->eq(0); $second = $selectWatch->eq(1); $third = $selectWatch->eq(2); https://processwire.com/api/ref/wire-array/eq/
  6. Why are there two modules? Can the main module be used without the "Packages Manager" module? Why the "sort by name" button and not use the table header? Delete all button goes all the way to the right because no "position: relative" on parent. You could also float it to right. Sorry if these were already discussed.
  7. fbg13

    I installed the module, converted the field and nothing changes for me.
  8. fbg13

    @Juergen I get null without parentheses. What PHP version are you using? I'm using 7.1.13
  9. fbg13

    @Juergen works for me. Your $image is null, so check that you're on the right page/have the right field name.
  10. fbg13

    @mikhail The Fieldset field can also be used to achieve that.
  11. @BitPoet The module doesn't remove the mention page on uninstall, it's not found because it's hidden. If you create it in the getModuleInfo method it will be removed by PW on uninstall. public static function getModuleInfo() { return array( ... "page" => [ "name" => "mention", "title" => "Mention", "status" => "hidden" ] ); }
  12. fbg13

    @CarloC try { echo $modules->get('LoginRegister')->execute(); } catch (WireException $e) { echo "Too many failed login attempts.<br>" . $e->getMessage(); }
  13. fbg13

    @CarloC try { $session->login($username, $pass); } catch (WireException $e) { $loginError = "Too many failed login attempts.<br>" . $e->getMessage(); }
  14. fbg13

    How about making it only visible when a get variable is set and has the same value as a variable set by the user? $pass = '12345'; if ($_GET['pass'] !== $pass) { exit; }