Jump to content

zoeck

Members
  • Posts

    419
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by zoeck

  1. I have one more small suggestion to improve the function a bit ? Just replace the complete if inside the execute-endpoints.php file: if ($action === 'action-get-openapi') { [...] } With this: if ($action === 'action-get-openapi') { header('Content-Type: application/json; charset=utf-8'); echo json_encode($openApiOutput, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE + JSON_UNESCAPED_LINE_TERMINATORS); die(); } So Tracy is disabled on output and via the browser you can save the file directly as json. And Thanks for this nice update ? @Sebi
  2. @ceberlin "Updated 2023/03/09" -> The module has just received an update ? Or is this related to the problems with the current dev version?
  3. You can have a Look at the Croppable Image 3 Module https://processwire.com/modules/croppable-image3/
  4. Currently, I barely use Processwire for the frontend, since I am implementing a larger project with vue.js when i have some time, i will have a look at the problem with the tracy panel.
  5. Found 1 module(s) missing file: .Modules.wire/modules/ => /site/modules/.Modules.wire/modules//.Modules.wire/modules/.module And I can already see my problem, I downgraded to 3.0.217 due to another bug. After that, the problem occurred, just as you wrote, because .217 does not need this entry. In the meantime, I have updated to .219, where the entry was created again. Without error message.
  6. I had the same problem with 3.0.218. I had to delete the module ".Modules" in the modules table in the database. After that, the error was gone. Thought this was only a local problem ?
  7. I have the same problem, freshly downloaded 3.0.218 DEV version @ryan is there a problem here with the current version? /edit: reverted to 3.0.217 DEV and it's working...
  8. I think you have to pass the variable to your included latte file: {include '../blocks/' . $block->type . '.latte', block: $block}
  9. I am currently switching from HTMX to Vuejs with Processwire as the backend. But this will also be more a SPA ? I am positively surprised by Vue….
  10. You can renew the ProFields for $39 -> Manage Purchases If there is no "Renew Now" button there, you will need to contact Ryan first. (this is what Ryan wrote here) It's not a subscription at all, it just extends the updates by 1 year ?
  11. if($input->urlSegment1 == 'photos') { // display photo gallery } else if($input->urlSegment1 == 'map') { // display map } else { // display main content } You mean like this? Or what exactly do you mean by whitelist ("Without manually adding"?!)
  12. Have you looked at the instructions for URL Segments? https://processwire.com/docs/front-end/how-to-use-url-segments/
  13. Possibly the same problem as here: If Tracy is installed, you should deactivate it in the template (you can do this in the Tracy settings): No debug bar in selected frontend templates Disable the debug bar on pages with the selected templates.
  14. Do you already know the lister function of the Processwire? Simply go to Pages -> Find, then you can display a table with pages (with adjustable columns). There is also an extended (paid) variant: ListerPro
  15. Do you want to simply access existing Processwire pages or create new ones? Or do you have your own table ("kontrundgang") where the data should go? You can have a look at the Database API: https://processwire.com/api/ref/wire-database-p-d-o/ By the way: you should never execute unsanitized values in a sql statement!
  16. Of course you can do that with Processwire, there is also a module for it ?
  17. I actually always use Google to search the forum ? just add "site:processwire.com/talk" Example:
  18. <?php if($page->id == **YOURLANDINGPAGEID**) return; ?> Just Add this to the top of your _prepend.php and _append.php (and isert your id ?) Of course, this also works with a template check: <?php if($page->template == "**yourtemplatename**") return; ?>
  19. Check your config file for something like this: $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; I think this will be the line with the _main.php ? This is a standard configuration in the Regular Site Profile
  20. Renew the Profields licence (Store -> Manage Purchases, it costs $39) with the account that bought the licence at the time, and then go to the Profields Board and download the new version ? If there is no possibility to renew, you have to contact ryan, he will unlock it.
  21. You have too hook the Lister: $wire->addHookBefore('ProcessPageLister::execute', function(HookEvent $event) { /* @var ProcessPageLister $lister */ $lister = $event->object; // I'm not sure, but the parent of the "Search Lister" has the ID 0? if($lister->parent->id !== 0) return; // Set sort $lister->defaultSort = 'title'; bd("Changed Search Sort"); });
×
×
  • Create New...