Jump to content

Stefanowitsch

Members
  • Content Count

    60
  • Joined

  • Last visited

  • Days Won

    1

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. Thank you very much! That did the trick: Include the "multipart/form-data" as enctype. That gives me access to the $_FILES array to grab some information about path and sizes.
  2. Hello! I want to include file attachments to my mails. It is not so clear to me how to achieve this. The docs say this: So I can get the filename as value from the input field. Thats basically the name of the file itself (like "mytextfile.txt"). So then I say for example: $mail->attachment('myfile.txt'); But this does nothing. The file is never send as an attachment. Can somebody help me how this is supposed to work? If I need not the filename but an absolute path to the file, where can I get it? It's not included in the form POST data, isn't it?
  3. 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');
  4. 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:
  5. 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.
  6. 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". 🙂
  7. 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
  8. Cool. Using this instead of $modules works. wire('modules')
  9. 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?
  10. 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.
  11. 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/
  12. That's it! Thank you very much. Now I can make my settings page without the trouble of frontend accessibility.
  13. Okay I am wondering if you can actually hide a page so that it cannot be reached from the frontend at all.
  14. So settings is basically just another page with custom fields. Which means that it also would be accessable from like www.mypage.com/settings ?
×
×
  • Create New...