Jump to content

zoeck

Members
  • Posts

    382
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by zoeck

  1. Or just use the URL Path Hooks function ? https://processwire.com/blog/posts/pw-3.0.173/#introducing-url-path-hooks /site/init.php <?php $wire->addHook('/hello/world', function($event) { include($this->wire->config->paths->templates."test.php"); return true; }); Now you can use the Url "https://your.site/hello/world/" - and the content comes from /site/templates/test.php
  2. Also available in german ?https://www.ionos.de/digitalguide/hosting/cms/processwire/
  3. Can you Test it with echo $input->post('modelId'); Or Just add an slash at the end: xhr.open("POST", "/ajax_handler/", true);
  4. I think if all blog posts need the same fields, Berhard's solution is better. So you have to set the fields only once. But of course your solution works too ?
  5. You can create different templates that have different designs (templatename.php) The author must select which template/design to use when creating a page. A template defines which fields are available on a page and which template file (/site/templates/templatename.php) is used. The content/text is then defined on a page.
  6. Bernhard has already posted a nice code example here ?
  7. Try {$item->title}, does it work then? "<h3><a href='{$item->url}'>{$item->title}</a></h3>" .
  8. You can program everything without the Pro modules. But with the modules you can implement many things easier, better and faster. Especially the ProFields are a must have in my opinion ?
  9. Only if a product can have multiple vendors ? So probably not… ? Just have a Look in modules-> Core -> install (available since PW Version 3.0.184)
  10. Do you mean decimal field? Float is not the right field for prices ?
  11. Did you select the correct template (not basic page) for the page you created? just edit the Page and Go to the page settings tab and Check the selected Template. your new „impressum.php“ file is in /site/templates? Which profile did you select during installation? eventually the Same Problem here ? ?
  12. Do you know Padloper? https://processwire.com/talk/forum/62-padloper-support/ But it’s Not free: https://processwireshop.pw/padloper-2/padloper-2-buy-now/
  13. Changelog Version Description 8.0.0 count() will now throw TypeError on invalid countable types passed to the value parameter. 7.2.0 count() will now yield a warning on invalid countable types passed to the value parameter. https://www.php.net/manual/en/function.count.php?
  14. Just replace if($page->hasChildren() || count($page->siblings(false))) with if($page->hasChildren())
  15. <?php namespace ProcessWire; $showsidebar = 0; // Set $showsidebar to 1 if the page has children or siblings if($page->hasChildren() || count($page->siblings(false))) $showsidebar = 1; if($showsidebar) { // Code with Sidebar } else { // Code without Sidebar } I think this should work, untested ?
  16. Just have a look ? It is not adjustable via the admin panel as far as I know. Only via this workaround
  17. I have also been using Latte for a few weeks. Thanks to Bernhard ? It's just so awesome to use latte. But you also learn new tricks every day. I'm looking forward to the public version of RockFrontend (by the way a brilliant module ? thanks again Bernhard!)
  18. On one Website, i use "wowBook", but it's not free and unfortunately also requires jQuery... Have also been looking for a better solution for a long time.
  19. Megapixel is Not the Filesize ? It defines how many pixels an image has 2 Megapixel = 2.000.000 Pixel = approx 1731*1155 (= 1.999.305 Pixel)
  20. I think it‘s the „Maximum Megapixel“ Configuration ? it‘s set to 2MP, it‘s too low for your Image ?
  21. Just open your PW Admin Panel -> Modules -> Install Language Support Languages Support - Fields Languages Support - Page Names Languages Support - Tabs
  22. Can you shortly explain how you use latte in PW? Do you use the "Template Engine Factory" module for this? Latte sounds very interesting!
×
×
  • Create New...