Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. I think the backend uses pageName with the argument/option 'beautify'. You can either use this: https://processwire.com/api/ref/sanitizer/page-name-translate/ Or this, with beautify argument: https://processwire.com/api/ref/sanitizer/page-name/
  2. And actually, maybe it shouldn't be possible: https://processwire.com/docs/front-end/include/
  3. RESTful APIs...eg. https://modules.processwire.com/modules/app-api/
  4. Possibly due to this?
  5. Google Pay picks Flutter to drive its global product development
  6. Like this? https://github.com/ryancramerdesign/ProcessHannaCode#using-hanna-code-from-the-api
  7. Glad you resolved it ☺️. Please mark the thread as solved, thanks.
  8. This one: https://github.com/processwire/processwire/blob/dev/wire/modules/Process/ProcessPageList/ProcessPageList.js So, jQuery mainly and some vanilla JS.
  9. Do you mean how you can build the selector for the options field? Carrying on from above, do you mean how to build the selector? If yes, just append a SANITIZED value (from $input->tipologia) to query your options field as well. E.g. $selector .= "name_of_options_field={$sanitizedTipologiaSekectorValue}". Typed quickly in browser and untested.
  10. Maybe end game for electron? ?
  11. Great! Glad you got it sorted ?. What was the problem in this case? Thanks.
  12. Announcing Flutter Windows Alpha ? https://medium.com/flutter/announcing-flutter-windows-alpha-33982cd0f433 Flokk – How we built a Desktop App Using Flutter Windows fun with Dart FFI Flutter Client App for Aartos, Desktop + Mobile
  13. Or a hook like this? (not tested much). in site/ready.php $wire->addHookAfter('ProcessPageAdd::getAllowedTemplates', function (HookEvent $event) { $allowedTemplatesArray = $event->return;// normal PHP Array $allowedTemplatesWireArray = new WireArray();// create new WireArray() for sorting convenience $allowedTemplatesWireArray->setArray($allowedTemplatesArray);// populate the WireArray with data // whatever sort you want -> id, name, or multiple props, etc // maybe even a $int = $template->getNumPages(); ? PERFORMANCE ISSUES? (would require looping through all templates) $allowedTemplatesWireArray->sort('-id'); // sorting by ID DESC $allowedTemplatesModifiedArray = $allowedTemplatesWireArray->getArray();// get PHP Array back from sorted/modified WireArray $event->return = $allowedTemplatesModifiedArray;// give it back for passing to ProcessPageAdd -> buildForm() }); You could also use PHP's sort functions to sort the $allowedTemplatesArray but it is simpler to user WireArray sort instead ?.
  14. Yes, it's a known issue that I've never gotten round to fixing (although several fixes exist, a number of posts in this thread). I'll get to it at some point. Sorry for the pain.
  15. Hi @Eduard, Thanks for an excellent first post and welcome to the forums ?.
  16. I don't know what this means :-). However, you can always get the raw date and format it as you wish. $dateUnformatted = $page->getUnformatted('date');// e.g. 1576236300
  17. Moderator Note @franciccio-ITALIANO. I moved your topic to Dev Talk.
  18. Dynamic Selects version 007 (released (23/09/2020)) Glad to announce that the latest release of Dynamic Selects is now available for Download/Purchase. Changelog Multilingual column labels (see screenshots/demos below). Repeaters and Repeater Matrix support (not tested Repeater Matrix though!). Selected Page/File/Image URLs (only supported in FieldtypeDynamicSelects for now). Thanks to @hollyvalero for request and testing ?. Various bug fixes. Screenshots/Demos Multilingual Column Labels Selected Image (in dynamic selects column) URL Selected Pages (in dynamic selects column) URL Thanks
  19. https://stackoverflow.com/questions/61224060/sqlstatehy000-general-error-1-cant-create-write-to-file-var-www-html-new
  20. I would love to see a screenshot please as I am not sure I know what you folks are talking about ?. Thanks!.
  21. This comes from WireUpload.php, here as result of PHP error described here. You could perhaps use try catch blocks to customise notices.
  22. 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.
  23. Nope. It's never been possible. You must be confusing this with something else. Nothing to do with ProcessWire. Many (most?/all?) languages have variable scope. $config is outside the variable scope of myfunction(). myfunction() doesn't know what config is. You have to tell it. Having a namespace declaration has nothing to do with it. namespace ProcessWire; // alternative 1: use the global wire() function - @see: https://processwire.com/api/ref/functions/wire/ function myfunction() { echo wire('config')->paths->assets; // no error } // alternative 2: pass in $config function myfunction2($config) { echo $config->paths->assets; // no error } alternative 3: functions API - e.g. https://processwire.com/api/ref/functions/config/ @see also: https://processwire.com/api/ref/functions/
  24. Unless you have changed your _init.php or something in this file has changed since I last checked, this is redundant/verbose since the _init.php that ships with ProcessWire already includes _func.php // Include shared functions include_once("./_func.php"); Why not put them in a .css file? Hard to read this crystal ball without some sort of clue please? What errors are you getting? Are you using this skyscrapers-profile?
×
×
  • Create New...