Jump to content

elabx

Members
  • Posts

    1,479
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. Just pushed ProCache's cache time to like 100 years lol. That's also what I want to achieve at least, not letting the site completely die even if forms/backend are not working. So like mentioned above, a "build" step is something i'd need to work on. I guess I could put pw backend in a subdomain (possible?) and put the rendered static files in another folder of the server to render on the right domain. Also I guess there's a lot other stuff to consider like 404's, formbuilder forms in iframes...Maybe I should just get MySQL to behave but I guess that's gonna take me a couple years at least :P
  2. Hi everyone! I come here after a very ugly situation in which mysql server was down holding around 50+ websites in a pretty big server using ProcessWire only. So I start to feel where all this static site generation hype comes from. Has anyone moved further on this aspect?
  3. Hi! Is this module working with recent versions of ProcessWire? Is it compatible with UIKit theme?
  4. Three people now! haha Any news on this bug?? Thanks! I rolled back but now I am having issues with JqueryUpload version 008 working, tried rolling back to 002 but I still can't open when I click on Add Media on any of the pages, getting: Uncaught Error: Class 'ProcessWire\JqueryFileUpload' not found in /srv/users/serverpilot/apps/ladosis/public/site/modules/ProcessMediaManager/ProcessMediaManager.module:209 Ok this took me through a tour of namespacing issuer all over the MediaManager modules and got it working back.
  5. Awesome! Thanks @dragan! Great start! Though I am thinking of something a lot less complex. I think I might just build it myself because I'd rather build upon the existing image field markup so I can upload right then and there. Plan is: Add a "select icon" to the image thumb. Save the selection through AJAX in page. Maybe with the brand new meta API. Probably this is a very personal requirement, but I plan to open this page in a pw-modal window, select the image and send back the image url in the event message. Do you think this is possible?
  6. I've always had this same issue. Can confirm it happens on even previous versions.
  7. As the title implies, does anyone know if there is an existing module to "select" an image from a multiple images field?
  8. What about finding the fields first? $textFields = $fields->find('type=FieldtypeTextarea|FieldtypeText') $page->builder->find("$textFields!=''")->each(function ($item) use (&$content, $sanitizer) { $content .= $item->get(...); }); EDIT: Oh just read again about "text extended fields". This obviously won't work :/ Maybe: $textExtendedFields = []; $fields->each(function($f){ if(wireInstanceOf($f->type, "FieldtypeText") === true) { $textExtendedFields[] = $f; }; })
  9. I wonder if you should rather, delete() every page also, not use removeAll() because I think it's just removing it from the object, not from the db. foreach($pages->get("template=home")->submissions as $s){ $s->delete(); }
  10. Wow old issue! This is still not working! :O
  11. Has anyone done a non-geographical map? That is, an image of a mall, a park, plaza, etc with markers and some navigations (zoom/pan). Any js libraries to recommend? Found this: https://leafletjs.com/examples/crs-simple/crs-simple.html Something like this is the closest i could find, but don't know how much I'll be able to hack it to save maps in PW: https://codecanyon.net/item/image-map-pro-jquery-interactive-image-map-builder/2792438
  12. I THINK, in your saveReady code you are trying to get a page that is not yet saved, so that's why you get a Null reference. This two lines are king of redundant, because argument 0 will always be a Page object, but saveReady is happening like the hooks says, just before saving, so when you try to find a page with $pages it doesn't find it even if you already have a Page with an id.
  13. When creating the page you have to set the number in the field "repeater_matrix_type". $repeater_field->repeater_matrix_type = 2 Now the problem is how to get the numbers, if you inspect the repeater matrix module configuration ($modules->getConfig('FieldtypeRepeaterMatrix')), you could get the info from there. Basically every repeater matrix type has a number. You can also get this info by inspecting the html from a repeater matrix field, you will see that the fields have a number prepended. That sounds like you are referencing the page in the wrong way, if you can paste all the code of your hook we could help a little bit more, the page being saved should be accessed like this: $page = $event->arguments(0);
  14. @Juergen this is too much for monday! haha. But you know, looking at the config page, this list probably generated on runtime because there is also no way to delete them on the config screen, I took a look at the source code and I THINK, it's happening here, so maybe you can call executeNavJSON?: https://github.com/processwire/processwire/blob/master/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module#L151
  15. Maybe it's because the Array is printing as true? I don't see what could be going wrong! Have you tried: print_r($data, true);
  16. elabx

    SeoMaestro

    HI! Awesome module @Wanze! Does anyone know if this module allows a fallback field (or lists of them) within the page if for example, the description is not set?
  17. You don't need to include_once() if the vendor folder is in the ProcessWire installation root, it has loaded the libraries already, if i remember correctly the index.php of PW takes care of this. I am also almost sure you also have to have the use statement like @Edison points in the examples.
  18. Hi! Has anyone tested this module with recent ProcessWire versions?
  19. Why is composer an overkill? You are one command away from the library! The docs don't seem to offer the library as a package.
  20. Yep, getting the exact same behaviour!
  21. You could use a Table (or multiplier) field to set this up. And when rendering your JSON output, generate the variations using the Table field data on the page.
  22. I think there is no way around this currently.
  23. When you say page listings you mean Listers?
  24. I don't know how many times I write ProcessDatabaseBackup just to find out it needs to be plural.
  25. TemplateFile::render does seem to be a good place to tweak the markup right before it goes into the MarkupRegions class. Is that one not working? Here is where the template is rendered: https://github.com/processwire/processwire/blob/master/wire/modules/PageRender.module#L514 Here is where the markup regions are populated: https://github.com/processwire/processwire/blob/master/wire/modules/PageRender.module#L524
×
×
  • Create New...