Jump to content

Recently Updated Topics

Showing topics posted in for the last 7 days.

This stream auto-updates     

  1. Today
  2. Hi, this has me stumped, please help. 😳 I'm using a field 'page_body' in a page-template as well as a blog-template. HannaCodeDialogue is enabled for the field page_body. HannaCode works perfectly in Pages but not in Posts. The dropdown is visible in the pages edit template but not in the posts edit template. If I manually put the code into the Posts Template i.e. : [[YouTubeVideo videoName="my_vid"]] it simply displays the tag. I'm quite sure this is a config error of some sort but for the life of me, I can't find it. Thank you. Greg.
  3. Hey @adrian, thanks a lot, I've tested your modified version. For me, subfields as top level options are totally fine, already adds a lot of possibilites for user references! I found that my columns have type pageAutocomplete and not pageSelect, I think that's why they were exported as IDs only. I added pageAutocomplete to the fieldType checks and this works! – unless I export both "User" and "User.email", then somehow the $subfields indexes are off (Undefined offset ...). So I made one more change where the main page "User" is not added as an option anymore. To cover all cases I also added id as a subfield option. I marked my edits with //@TH SUBFIELDS There is also pageAutocompleteMultiple, that seems to procude other problems I didn't dig into. TableCsvImportExportSubfieldsTH.zip
  4. Awesome, thanks @ryan! πŸŽ‰ Now I can update my TrelloWire module so it works properly again πŸ™‚
  5. Just dropping in to say thanks for this module! Saving me soooo much time on a current job. πŸ‘
  6. Hi @helin, Sorry for the late response. This has annoyed me for a long time and while it might seem like an easy fix, it has eluded me several times. I have put in another concerted effort and I think I have a working solution, but it would be great if you could test before I commit to the repo. Please try the attached file and let me know. It should work regardless of whether you have the "Rename on Save" option checked, but please note that if you upload a replacement file for a single image field (max allowed 1 file), then the -1 will be appended until you save the page - this is simply because the other image still exists until you save the page, so the filename must be adjusted, but it should now be removed if there are no other conflicting filenames. ProcessCustomUploadNames.module.php
  7. This shouldn't be a problem πŸ˜‰
  8. This comes from WireUpload.php, here as result of PHP error described here. You could perhaps use try catch blocks to customise notices.
  9. Yes, it has always been like this since I can remember. I don't think this is a ProcessWire issue, but a CKEditor one. So unless they fix it on their side, a new version will not help unfortunately.
  10. Yesterday
  11. I guess it depends on your point of view. I can see how "always compare old to new" might make sense, but personally I prefer current approach, which is basically just "selected revision compared to any other revision". At least for now I think that current approach is straightforward and makes sense (without requiring additional UI tricks, such as the one used by Wikipedia) πŸ€·β€β™‚οΈπŸ™‚
  12. Did anybody here developed a ProcessWire Site with Recurring Payments / Subscriptions? I have an idea for an B2B service where companies can register themselves and if they have an active subscription they can access some specific content. They can also cancel the subscription every month. I looked and SnipWire/FormBuilder but found nothing about Recurring Payments.
  13. I will take a look into it this week. In the meanwhile you try to create the blurhash based on a smaller size. I make this on also every blurhash pic on blue tomato E.g. // original pic size: 500/200 $hash = $page->pic()->getBlurhashDataUri(50, 20);
  14. Just a quick heads-up that Wireframe 0.17.0 went live a few hours ago. Versions 0.15.0 .. 0.17.0 mostly included behind-the-scenes improvements and refactoring for existing features, so didn't think these were particularly interesting. Full changelog can be found from CHANGELOG, as usual. Probably the one and only feature that might come in handy during development is the shortcut method for defining view template and view at the same time (to use a view from a specific template instead of current one), added in 0.16.0: <?php // find blog posts and render them using the "list_item" view of the "article" template: ?> <ul> <?php foreach ($pages->find('template=blog-post') as $post): ?> <?= $post->setView('article/list_item')->render() ?> <?php endforeach; ?> </ul> On a loosely related note I've removed the "WIP" label from the topic of this thread, and am considering submitting the module to the modules directory. I think it's long overdue, really πŸ™‚
  15. In what @kongondo suggests, replace "config" with "page" or "pages".
  16. Last week
  17. Hi @bernhard, thanks for the welcome and your fast reply! πŸ™‚ I'm happy you want to add it and try to prepare a PR with usage instructions tomorrow or monday.
  18. Hi, I need to set system field email to unique to allow login via email rather than name (session->login). However, it wont save the unique setting. ErrorException: Trying to access array offset on value of type int in /html/wire/core/WireDatabasePDOStatement.php:107 thanks! ProcessWire 3.0.164 LoginRegisterPro 0.0.3
  19. Hi! The feature Automatic Page Name Format of the PageTable field has stopped working after a ProcessWire upgrade. I was using the following configuration string, which worked perfectly before: Y-m-d_H-i-s_\d\o\w\n\l\o\a\d The config string was interpreted as PHP date format, where you can escape characters to mark them as non-date-formatting characters. The PHP docs state the following: PageTable generated the page names like the following example: 2017-03-13_12-17-24_download But after a ProcessWire upgrade (I assume it must have been version 3.0.123) the page names are now generated as follows: y-m-d-h-i-s-d-o-w-n-l-o-a-d The config field settings description now states: So, I tried several other configurations, like: Y-m-d:H-i-s \d\o\w\n\l\o\a\d Which renders the date part correctly, but the string "download" is unfortunately also processed as a date format. I assume the configuration setting is somehow filtered by ProcessWire before it is passed to the php date function. This was not the case in older versions of ProcessWire. Sorry, I haven't the time to test with which version the behaviour changed. The feature stopped working somewhere in january 2019, so I assume it must have been the upgrade to ProcessWire 3.0.123. Has anyone similar issues with the Automatic Page Name Format in PageTable?
  20. thanks! I wonder though why the ->type-> part is not in the API doc https://processwire.com/api/ref/fieldtype-options/get-options/ because without it, doesn't work
  21. Thanks! Somehow the directory associated with a domain on our hosting account was deleted (still not clear on how that happened), resulting in a 500 error when visiting the site. I restored the folder and all its contents, which only rewarded us with a 403 error as I described in my original post. When I reached out to my host's support, they said "Reviewing, it looks like the ownership of the folder was not correct. We adjusted this and the website is now online." Hopefully that helps if anyone else's directories randomly go missing! Wish I knew how it happened.
  22. Hi @Marco Ro – Thanks, I'll need to look into this. It isn't the first time it's happened. Internally, I use a package that generates the sitemap using a 'fluent' interface, and this issue has crept up with that package a few times in the past.
  23. @gebeer It'll likely be executeCommit as executeEntity returns the view. However, the 'routes' will be split out in v2 (namely, executeStore, executeUpdate, executeDisable, executeEnable, the first two of which will probably be used to trigger a cleanup).
  24. @teppo and @bernhard Please try the attached main module file. With this version, you can simply add your panel to your module directory structure eg: /site/modules/TestModule/TracyPanels/TestThirdPartyModule.php Make sure the class name of the panel in this example is: TestThirdPartyModulePanel That should be all you need. Not super well tested so let me know if you find any problems or have any suggestions. If everything looks good, I'll commit the changes to the repo. TracyDebugger.module.php
  25. Hello, is it possible to render the input field on a frontend template (for loggedin users only). I tried this: <?php $m = $modules->get('InputfieldLeafletMapMarker'); $m->render(); ?> This generates errors for empty variables. 1Γ— PHP Notice: Trying to get property 'lat' of non-object in ...\InputfieldLeafletMapMarker.module:102 1Γ— PHP Warning: Creating default object from empty value in ...\InputfieldLeafletMapMarker.module:102 1Γ— PHP Notice: Undefined property: stdClass::$lng in ...\InputfieldLeafletMapMarker.module:103 1Γ— PHP Notice: Undefined property: stdClass::$zoom in ...\InputfieldLeafletMapMarker.module:104 1Γ— PHP Notice: Undefined property: stdClass::$address in ...\InputfieldLeafletMapMarker.module:105 1Γ— PHP Notice: Undefined property: stdClass::$status in ...\InputfieldLeafletMapMarker.module:106 2Γ— PHP Notice: Undefined property: stdClass::$status in ...\InputfieldLeafletMapMarker.module:107 1Γ— PHP Notice: Undefined property: stdClass::$raw in ...\InputfieldLeafletMapMarker.module:130
  26. You could also look into modulus.. I think it could be done like: <?php if ($count % 5 == 0) { // display banner } ?>
  27. I don't remember why there are all these checks in hookAfterTemplateRender, but in such way it could identify a template that was used for rendering of the current page
  1. Load more activity
  • Create New...