Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/18/2016 in all areas

  1. You could use my FieldtypeDropdownDynamic in conjunction with a snippet of code that iterates the gcb directory for php files like the following (untested): return array_map( function($file) { return array("label" => $file, "name" => $file); }, array_filter( scandir($config->paths->templates . "gcb"), function($found) { return substr($found, -4) == ".php"; } ) );
    4 points
  2. Hello @franciccio-ITALIANO, the CKEditor is not poor, you just have to read the instructions. There are plugins available for color and align. In case of the color, in my opinion, I find the default behavior of stripping out inline styles preferable and much cleaner to define your own styles. Regards, Andreas
    3 points
  3. It is not a "PW text editor", it is the "CK-Editor". Please follow the given links in the editorfields configuration screens to all those documentations of the CK-Editor.
    3 points
  4. Maybe one of the parent pages has a template that has access restrictions and children inherit these? I routinely define access for all templates (because I often set restrictions on the Home template and these would otherwise flow down throughout the site). Less head-scratching that way.
    3 points
  5. Take a look at the Auto Smush module, it's doing the same with another web service.
    2 points
  6. Or you, the module author, can click to edit the module and save (no need to make changes), and PW will fetch the latest version immediately.
    2 points
  7. MarkInPageTree New module which does what it says in the title. It adds an icon to a page on the page tree if -> a specific field is true and / or is a specified template. For example I'm using it to add an icon to any page that has a checked (checkbox) exclusive field. This helps with admin clarity as you can see instantly which pages of the same template have differing content (i.e. are exclusive or not). https://github.com/benbyford/MarkInPageTree
    1 point
  8. Hello, I am currently playing around to build my first module. It will be a simple module for the ImageOptim web service, but I am a little bit stuck on which right hook to use. Currently I use following hook: $this->pages->addHookAfter('saveFieldReady', $this, 'imageOptimSave'); I would like to pass images and its variations to the web service after adding them to the image field. But if I use the saveFieldReady hook only the original image will be optimized, not the API generated image variations, because they will be generated after viewing the page for the first time. Can anybody please help me how to hook into the image variations? I already tried to use my own method, but this one used in the template would be called on every page render. Regards, Andreas
    1 point
  9. I sometimes use this module for selecting files: http://modules.processwire.com/modules/fieldtype-select-file/
    1 point
  10. PW refreshes versions once a day, so you have to wait or update manually.
    1 point
  11. 1 point
  12. If you're on PW 3 take a look at findMany(). Otherwise there's this method of cycling through pages without running into memory issues: https://github.com/LostKobrakai/Migrations/blob/e94427abff04189f145e24c51a70fb6190e29c2e/Migration.php#L18-L30
    1 point
  13. Yep...That was it. System Notifications notices don't show up when in a modal. The 'normal/older' notifications show up OK in a modal.
    1 point
  14. Yeah, well ... Thanks @Klenkes! That did it, wasn't aware of that. Sometimes I chose the complicated route over trying more obvious options. Those RTEs are dinosaurs anyway, my next PW installation will have Repeater Matrix and Ace-Fields only.
    1 point
  15. Happy Christmas everyone! I had a bit of time to add tot his module It now has textareas (thanks @tpr) in it's config which means it can now add as many icons and field and/or template pairs as you like. This means you could add one icon for pages of the template basic-page, and also add another icon for all pages with a counter etc... Also... I've added a third textarea, allowing you to add a list of fields to show the data for IN the pagetree itself (see image below). In my example below I am able to show in the page tree by each page if they have a counter what the data is and whether the page has a field exclusive and its data. Thanks for peoples help and hope it is useful. (updated on github)
    1 point
  16. @Robin S and @horst thanks for the suggestions. I will look into it, but as suggested first I'll follow the tutorials on this site (and youtube).
    1 point
  17. The checkbox value is broken. Checked or Unchecked it always echo "1". Please fix it. Thanks.
    1 point
  18. You can use from the API: $pages->emptyTrash(); It's even better if you can do it by bootstraping PW from the terminal.
    1 point
  19. Hey Soma, It's funny, because I knew of D3, but hadn't really looked at it. Then -- after using ProcessWire -- I took a real look and saw an immediate connection. For people who come from a Joomla/Drupal background, these sorts of capabilities were not so much on the table. With ProcessWire, suddenly the whole world of flexible uses of data are presented to you. Thanks, Matthew
    1 point
×
×
  • Create New...