Jump to content

Markus Thomas

Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Markus Thomas

  1. This work in my case whithout any problems $wire->addHook('/existing-page/([0-9]+)', function ($event) { $id = $event->arguments(1); $post = $event->pages->findOne("template=product, id=$id"); if ($post->viewable()) $event->session->redirect($post->url); });
  2. Just try <li><a class="dropdown-item" href="<?= $page->url('name-asc') ?>">Name (A-Z)</a></li> instead of <li><a class="dropdown-item" href="name-asc">Name (A-Z)</a></li> This should fix the link
  3. This link simply adds "name-asc" to the end of the actual URL. But you have to switch between "name-asc", "name-desc" etc. For this you have to specify the complete url https://processwire.com/api/ref/page/url/
  4. Have you tried to remove the template in the FileCompiler-Folder? You find it here: /site/assets/cache/FileCompiler/templates
  5. That is okay, and i use it always like this. But your sorting-HTML is not in this template ... this is only the pagination.
  6. I mean the template that generates the HTML of the sortinglink.
  7. How look the output? I think the generated sortinglink ist wrong.
  8. You can use the URL-Hooks. https://processwire.com/blog/posts/pw-3.0.173/ I think this should be the simplest solution.
  9. I even use Cloudflare on the most of my sites and had the same issues. Since i use $config->sessionFingerprint=false; everything works fine. Maybe you have to use false instead of 0?
  10. Have you set a RewriteBase in your .htaccess?
  11. Try this as Operator: ~%= or ~*= I use this on all my sites with the AjaxSearch module, but it should work here as well. Here you can find Ryan's blogpost: https://processwire.com/blog/posts/pw-3.0.160/
  12. This is what you got with WordPress and Elementor ...
  13. Thanks for the tipp, it is already done in https://www.dothiscookingthing.de/rezepte/ and the Categorypages ... but I forgot the homepage-listing
  14. Thanks. Yes. RepeaterMatrix is awesome and save so much time. Since I'm using it I have to use a lot of templates less than before. The SEO texts I mean are just small teasers at the categories and ingredients. The recipes should not be filled with unnecessary content. The recipes have a JSON-LD markup and are also already displayed correctly as a recipe e.g. on Google Nest Hub.
  15. Yes, that is right. Here is some on my to do list
  16. One of my first projects with ProcessWire. Online for a while, but still up to date and currently new features are being developed again. The most interesting feature of the site is the integration of the external tool and the PDF creation of the registration form with integrated API connection to always be able to directly output the most current dates. External Service: SEMCO ( https://www.semcosoft.com/de/ ) Used Modules: HannahCode Pages2PDF AIOM+ MarkupSitemap XML and some others In Development: Shop with Padloper Site: https://www.school-dynamic.de/ At this point I like to say Processwire makes it so easy for me to solve even more complicated tasks and get impressive results. Because I must confess, my PHP skills are unfortunately not yet where I would like to be.
  17. Thanks, good idea. The smiley and the sofa are described in the sidebar ? Dishes with a smiley are good for cooking during the week, after work. While "sofa-dishes" may take a while and are better for weekends.
  18. Thanks a lot ☺️ I can show you the structure of the recipe template. Here are all accordions open. Tags are reference fields for the categories as well as the ingredients that are used as reference for individual ingredient pages. New categories and ingredients are created automatically when you enter the recipe. Especially with the ingredients there is still a lot to do, because the individual pages (e.g. https://www.dothiscookingthing.de/zutaten/balsamico/ ) should still get texts and images. Maybe also a bit of SEO texts. ?
  19. My wife loves to cook, and I always like to further my knowledge around Processwire. So I thought I'll build a small page with the some small function to learn something. Used modules: ProMailer RepeaterMatrix Pages2PDF AIOM and some other litte modules Current functions: JSON-LD for recipes and page search Automatic ingredient calculation when changing the number of servings Creation of a PDF of the recipe Basic PWA (here is something to do, actually) Planned functions: a lot ? Site: https://www.dothiscookingthing.de
  20. Thanks for this terrific feature, I will be able to use this directly on one of the next projects as a short link for QR codes on products. This will save me so much work.
  21. Hello all, when I try to rename an image in the backend, I get the following error in the console: JqueryCore.js?v=1577948776:2 Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'disable' at Function.error (JqueryCore.js?v=1577948776:2) at HTMLUListElement.<anonymous> (JqueryUI.js?v=1577948776:6) at Function.each (JqueryCore.js?v=1577948776:2) at init.each (JqueryCore.js?v=1577948776:2) at init.e.fn.<computed> [as sortable] (JqueryUI.js?v=1577948776:6) at HTMLHeadingElement.<anonymous> (InputfieldImage.min.js?v=123-1577948776:1) at HTMLDocument.dispatch (JqueryCore.js?v=1577948776:2) at HTMLDocument.u (JqueryCore.js?v=1577948776:2) at HTMLDocument.c (rocket-loader.min.js:formatted:468) However, only with version 3.0.165 on another installation with 3.0.148 it works without problems. Can someone maybe help me with this?
  22. Hi, when i use nested repeater in PW 3 it will only output the first entry from the second repeater. Code: <?php foreach ($page->first_rep as $c): ?> <?php echo $c->fields; ?> <?php foreach ($c->second_rep as $p): ?> <?php echo $p->fields; ?> <?php endforeach; ?> <?php endforeach; ?> Can anybody help me?
×
×
  • Create New...