Jump to content

pwFoo

Members
  • Posts

    708
  • Joined

  • Last visited

Everything posted by pwFoo

  1. It looks like halt() doesn't work inside of modules?
  2. Changed that behavior? I get all the admin theme / page stuff... public function execute() { $array = array('me' => 'you'); header('Content-Type: application/json'); echo json_encode($array); exit(); } exit is needed to get plain json array as expected ?
  3. @Macrura where could I add wireRenderFile() because the page won't be loaded because of missing template file?
  4. My question ist posted twice... Answered your question in the other topic.
  5. Thanks @Macrura, I used it that way with custom templateFile, but will it work for "normal" page load? It's a (system) page with root as parent. Hidden page, but called from the client. I think it would be better to separate the special system template created by the module from normal (user) templates. No need to change or accidently deleted by user / developer. Just use as given by the module.
  6. Hi @dragen, I write a module which creates a hidden page and template. The template file needed for the hidden page to display should be stored in site/modules/MyModule/templates/MyTemplate.php instead of the site/templates path.
  7. I write a new module with it's own template file which I try to store inside of the module directory. Is it possible to persistent set a template path / file to module directory? $this->config->urls->siteModules . $this . '/templates/mytemplate.php' The module install() created an template with an hidden page and the page / template should use the template file located in the module directory. Would be nice if I haven't to store that "system template" to the pw templates folder...
  8. Is it possible to store a template inside of the module directory? Tried templates filename and altFilename without success...
  9. Hi @MadeMyDay, I haven't finished the module because of some problems with api auth / token of the used flarum version. Maybe it's easier with a current flarum version, but I haven't looked into it for a long time...
  10. Thanks Adrian, it looks like I posted the wrong module link...
  11. Take a look into the documentation linked in the initial post. But You should move to Login/Register/Profile module.
  12. jQuery is fine, but backend / jQueryUi dependencies should be removed. Why use a external form framework in frontend instead of the PW form / inputflieds? I know the form / inputfields work in the frontend, but designed for backend use only and not supported in frontend.
  13. Would be great to use small / fast / minimal frameworks with extensions / plugins to build forms, inputfields, ... working fine with backend and frontend
  14. Awesome! Looks like a great tool (features, UI) to work with.
  15. Thanks @bernhard, I haven't used it before, but need to take a look. [pagebreak] is supported by PW ckeditor? Should be replaced with the "<pagebreak>" html tag supported by mpdf? Maybe the best / easiest solution to set pagebreak with the ckeditor. I have to test it. Thanks!
  16. Hi, I want to generate a PDF with dynamic page breaks so that started paragraphs are pushed to the next page. Is that possible with pages2pdf or another php solution? If dynamic page breaks are not or not so easy to implement, a tool would be interesting, in which one could put the page breaks manually in a preview view before generating the PDF. Does anyone have an idea? Greetings
  17. Some tests done, but I don't know if TemplateEngineFactory fits my needs (current page inside of the global layout, ajax friendly usage, layout / current page scripts and styles).
  18. I used a simple TemplateFile extension to build a similar module which works fine with ajax (load current page / page part without global layout). The module is small and simple: https://bitbucket.org/pwFoo/templatefilehelper/src/060a9f5129e6eca65c75885572aa0c23ed83e591/TemplateFileHelper.module?at=master&fileviewer=file-view-default But maybe it would be better to move to your TemplateEngineFactory because it's well written and much more flexible. I think it would be better to have one base instead of different modules with the same goal. TemplateEngineFactory supports global template / layout. So it outputs the current page inside of a global layout template. Is it possible to skip that for ajax usage? Just output the current page part if it was a ajax call? Add cache feature to Processwire engine should be easy with WireCache? Or wouldn't it be a good option? At the moment it isn't needed. What's about multi lang and caching)? scripts / styles in global or current page context? For example to handle just current page scripts and styles if requested by a ajax call.
  19. So I need a template and page to use template cache. I take a look at MarkupCache and WireCache. Thanks.
  20. Should WireCache used instead of MarkupCache? Pro / cons to use MarkupCache?
  21. Hi, I use TemplateFile class to render custom files like _layout.tpl (base html layout file), but output I think output isn't cached. Because there is no template added to PW I can't configure template cache I think. How to activate template cache inside of php code temporarily or persistent (for example with a hidden / system template created)? Should be done with code (module install or inside a php file).
  22. This topic reminded my on my tests with reference based access control. I don't know about performance / production usability... But maybe You would take a look. https://bitbucket.org/pwFoo/accessbyreference/src/23e6a3597028da4021e3e348e4222a3ad77685a9/AccessByReference/AccessByReference.module?at=master&fileviewer=file-view-default Manage view / edit permissions based on a reference chain page -> group -> user. Wow... it's three years old... So it's untested with PW versions newer than three years
  23. Haven't used it for a long time. An update breaks frontend usage. If I remember correctly it was the same problem fixed by loading additional field JS / CSS.
  24. Hi, any changes done like Update PW version? Code changes? Additional modules installed? At the moment the module isn't maintained / updated. So it could break if You update PW.
  25. Hi @itsberni , search for form api. The modules uses PW native form api
×
×
  • Create New...