Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Stefanowitsch last won the day on February 12

Stefanowitsch had the most liked content!

Community Reputation

23 Excellent

About Stefanowitsch

  • Rank
    Full Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I got it! Forgot to include HIDDEN pages in the query. Typically my menu templates are hidden pages. So this is the correct solution: $page->rootParent()->children('include=hidden')->get('template=menu_submenus');
  2. Hello! This might be an easy one but I can't figure out the selector. My head is spinning. I am using the Multisite plugin and want to display custom footer menus based on multiple "submenu" templates. What I want to achieve: Get the page with the template "menu_submenus" that is located under the root page of the current page. My attempt does not work: $menus = $page->rootParent()->get('template=menu_submenus'); $footerNav = $menus->footer_menu; foreach ($footerNav as $item) { ?> <li><a href="<?= $item->url; ?>"><?= $item->title; ?></a></li> For visualisation heres the page tree:
  3. Hello there! I wanted to share my new proect with you. It's a small online shop for a local wine dealer: https://www.weinmarkt21.de/ Beware, the site is in german language. I used PW 3, Bootstrap 4 and a very few modules for this site. For the whole shop system I used the Processwire shop module Padloper exclusively. Developing in Processwire was a breeze as always. However I had to put some work into the Padloper stuff to make it fit to the needs of my client. It's a vey good base to start with but you should bring a bit of developing experience with you.
  4. Okay I found it. The problem was that i was searching for "Page Clone" but I am using a german language pack in the backend. Since the module is already included in the core it was translated into german. So instead of "Page Clone" I had to look for "Seite klonen". 🙂
  5. Hello! I want to install the PageClone Module. The description says that it is already included in PW and only needs to be installed. I am running PW 3.0.98 but can't find this module anywhere! It appears nowhere in the modules section. Plus, manually downloading does not work either. When using the class name to download, i get an error message "no url, has to be installed manually". Where can I download the module file itself? Regards, Stefan
  6. Cool. Using this instead of $modules works. wire('modules')
  7. Hello! I am using the _init.php file to place different php functions to render something on the page. For example a gallery, or a teaser group. I can then just call the function within a page template and the function renders the HTML code with the data given. Right now I want to render some teasers but I need to have access to the $modules variable which is not working right now. I get an undefined variable error. How can I use the $module variable in a different environment than a template file?
  8. I get this error when completing the checkout process. Everything seems to work, though: Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/processwire-shop/wire/core/Modules.php on line 1764 EDIT: Got it. I did not install the module for the downloads. Thought I did not need this.
  9. Putting Now that's a good way to do it, too! You can reach to the root page from everywhere with the get Method and render the Menu that way. But can you explain how the custom API variable works? I mean how can I define it and use it across the website? I know about the default API variables only : https://processwire.com/api/variables/
  10. That's it! Thank you very much. Now I can make my settings page without the trouble of frontend accessibility.
  11. Okay I am wondering if you can actually hide a page so that it cannot be reached from the frontend at all.
  12. So settings is basically just another page with custom fields. Which means that it also would be accessable from like www.mypage.com/settings ?
  13. I dont fully understand this point. What is a settings template? I know how page reference fields work but I am using them only on single pages right now.
  14. Hello! I am wondering - what is the best way to create a footer menu? Right now I have build a footer menu myself but I am wondering if this is correct. It works but there's something I'm not very happy about. Let me explain: I created a page called "footer-menu". Under this page there are my footer menu pages (direct children) Now in the frontend I typically want a list of my pages of the footer menu. So i render the children of the footer-menu page. That works fine: $footerNav = $pages->get('/footer-menu/')->children; foreach ($footerNav as $item) { <li><a href="<?= $item->url; ?>"><?= $item->title; ?></a></li> } The footer-menu page is set HIDDEN in the backend. So it does not appear anywhere. The downside is: The footer-menu page itself is still accessible! You can enter www.mypage.com/footer-menu/ and all you see is a blank page. This makes me think that google might index this page from time to time and maybe show it in the search results which is something that i don't want. Also the URLs of the pages inside the footer navigation go like this: www.mypage.com/footer-menu/page1 www.mypage.com/footer-menu/page2 etc. This is perfectly correct but not what you want from a footer menu if you know what I mean. How do you solve this?
  • Create New...