-
Posts
28 -
Joined
-
Last visited
Everything posted by zilli
-
Thanks to @ryanthe pack is there now https://processwire.com/modules/brazilian-portuguese-pt-br-language-pack/ !
- 1 reply
-
- 1
-
Unable to add a language pack to site Modules.
zilli replied to zilli's topic in Module/Plugin Development
Thanks @poljpocket, I will contact @ryan. -
Hi all, For some reason, I'm unable to add this language pack to https://processwire.com/modules/category/language-pack/ as described in So, I'm sharing the GitHub repo here: https://github.com/dlzi/processwire-language-pt-br, where you can download it directly.
- 1 reply
-
- 3
-
Unable to add a language pack to site Modules.
zilli replied to zilli's topic in Module/Plugin Development
It should not be difficult to add a language pack to https://processwire.com/modules/category/language-pack/, but it seems I'm missing something here. -
Unable to add a language pack to site Modules.
zilli replied to zilli's topic in Module/Plugin Development
@ryanam I doing something wrong there? -
Unable to add a language pack to site Modules.
zilli replied to zilli's topic in Module/Plugin Development
I do have an account. I already have one module published. But no idea how to publish a language pack. -
Unable to add a language pack to site Modules.
zilli replied to zilli's topic in Module/Plugin Development
Hi, I would like to publish the language pack here https://processwire.com/modules/category/language-pack/ How do I get it there? -
Hi everyone, I created a language pack, but I'm unable to add it to the site modules. My GitHub URL is https://github.com/dlzi/processwire-language-pt-br. When I try to add it, I get this error: I also tried adding an *.info.php file like the one at https://github.com/poljpocket/processwire-languagepack-dech, but that didn’t work either. Any tips?
-
Hey there! Here’s an alternative approach to setting up a PHP development environment. It's neither better nor worse than others, just different. I've been using this method for years, and it has served me flawlessly. So, I decided to share it with you. Enjoy! 0) Overview The idea here is to keep my system neat and tidy. Since I use one laptop for everything, I like to keep all my development tools separate so everything stays organized. The main tool I use is a virtual machine, specifically VirtualBox. Another significant reason I use a VM is that it lets me mirror my development setup exactly as it will be on the production server. This way, I know I’m developing with the same PHP/APACHE/MYSQL versions that I'll use in production. Of course, this only works when I have full control over the production server. 1) Installing VirtualBox Let's start by installing VirtualBox. You’ll also need to install the Guest Additions ISO, but we can do that later. 2) Choosing the Guest OS Since all my production servers run Linux, I install the same OS on the guest VM. Here are some tips for installing your VM guest: To replicate the production server, I choose a minimal installation, avoiding window managers, desktop systems, or anything that wouldn’t be installed on production. You can configure your LAMP stack later, but enable your SSH server now as you will need it later. 3) Configuring the VM After the installation is done, let's configure your VM. These configurations are specific to my hardware and the fact that I am using Linux as the guest OS. With my machine off, this is what I have: Select the Port Forwarding button to configure rules for accessing services from your guest OS on your host OS. Note: '/home/daniel/Public/WWW' is the host OS path containing the PHP files. 'Folder Name' is a label used for mounting this directory. 4) Running the VM in Headless Mode To minimize resource usage and keep the VM running in the background, I use headless mode, meaning no GUI (although I can start it if needed). This is all about command line! Here’s how to set it up for Linux, Windows, and macOS. Linux I achieved this with two bash aliases on my Linux host machine. Add the following alias to your `~/.bash_profile` or `~/.bashrc` file: alias headless='VBoxManage startvm LAMP --type headless' alias poweroff='VBoxManage controlvm LAMP poweroff' After adding the aliases, run `source ~/.bash_profile` or `source ~/.bashrc` to apply the changes. Windows Create two batch files, one for starting the VM in headless mode and another for powering it off. headless.bat @echo off VBoxManage startvm LAMP --type headless poweroff.bat @echo off VBoxManage controlvm LAMP poweroff macOS Add the following aliases to your `~/.bash_profile` or `~/.zshrc` file: alias headless='VBoxManage startvm LAMP --type headless' alias poweroff='VBoxManage controlvm LAMP poweroff' After adding the aliases, run `source ~/.bash_profile` or `source ~/.zshrc` to apply the changes. 5) Accessing the VM via SSH and Installing Guest Additions Without a GUI, the way to access the VM is via SSH. Ensure you have SSH installed on your host OS. Here’s how to set it up for Linux, Windows, and macOS. Linux I have another alias for this: alias go='ssh -p2222 YOURHOST@127.0.0.1' Windows Create a batch file for SSH access. go.bat @echo off ssh -p2222 YOURHOST@127.0.0.1 macOS Add the following alias to your `~/.bash_profile` or `~/.zshrc` file: alias go='ssh -p2222 YOURHOST@127.0.0.1' After adding the alias, run `source ~/.bash_profile` or `source ~/.zshrc` to apply the changes. Install your Guest Additions The installation process may differ depending on your host OS, so it's best to do a quick Google search and follow the documentation. It's not hard to do, it just involves a few steps. You need to have the Guest Additions installed before continuing to the next step. 6) Setting Up the Guest Machine Once you’re in your guest machine via SSH, it's time to set it up. The actual setup will depend on your needs, so I’ll just show you how to get your files served from your host system. The following setup happens on your guest OS: 6.1) Mounting Directories From your `/etc/fstab`, add something like: # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> www /var/www/ vboxsf auto,rw,uid=33,gid=33 0 0 `www` is the same name as in the 'Folder Name' field shown in the picture above. `/var/www` is where I want `www` to be mounted. It could be `/srv`, `/mnt`, or any other path you prefer. This is the type of file system. vboxsf stands for VirtualBox Shared Folder, a type used to mount folders shared between the host and guest operating systems. These are the options for `auto,rw,uid=33,gid=33`: auto: Automatically mount the file system at boot. rw: Mount the file system with read and write permissions. uid=33: Set the user ID of the mounted files to 33 (usually the www-data user in many Linux distributions). Change this to your Apache's user. gid=33: Set the group ID of the mounted files to 33 (usually the www-data group in many Linux distributions). Change this to your Apache's group. 6.2) Configuring Apache From your Apache configuration (`/etc/apache2/sites-available/000-default.conf`): <VirtualHost *:80> ServerName pw.test ServerAdmin webmaster@localhost DocumentRoot /var/www/pw.test LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> Here, the `DocumentRoot` points to what you have in your fstab. 6.3) Configuring MySQL/MariaDB From your MySQL/MariaDB configuration (`/etc/mysql/mariadb.conf.d/50-server.cnf`): [mysqld] bind-address = 0.0.0.0 #skip-external-locking 7) Connecting to the Database This is how I connect to my database via a database manager. The important information here is the Host and Port. ? Accessing the Web Server In your browser, type `http://localhost:8080`. That's it! ========== Let me know your thoughts and suggestions. Cheers!
-
Wow, this is so nice. Thank you very much! Have you considered writing a beginner's course on PHP OOP using ProcessWire as the main tool? ?
-
This is still an issue today. If this service is no longer available, how about adding a brief message to the page?
-
IconsFilter A module for ProcessWire CMS/CMF that enables filtering of icons by name in the InputfieldIcon view. Usage Install the IconsFilter module. Navigate to the Icon section in the Basics tab of field or template settings. Click on 'Show All Icons'. Use the filter input at the top right to search for icons by name. Credits Special thanks to the original author, Robin Sallis for creating this module.
-
How to output the website's current language name?
zilli replied to zilli's topic in Getting Started
Thanks, but that only works with logged used, right? It worked as expected! Thank you! -
Hello, Forgive this newbie, but I could not find a solution for this "simple" issue. I have a multi-language website and I would like to output the current language's name on my menu. I was able to generate the language switcher/navigation without a problem, but I cannot figure out how to echo the current language. Thanks!
-
I need some help in understanding how filters work with PW pages and templates. I need to convert this HTML template to PW. Here is a working example. That specific page is giving me nightmares. What I think I know so far: the front-end doesn't bother me, I have that covered each single hotel page has its features/facilities/characteristics those features/facilities/characteristics should be in the single-hotel template a hotel index listing template should be created to hold an index of all the hotels(paginated) Now, do I need a sidebar template to hold the PHP logic of the filter or is that part of the hotel index?
-
Thanks @szabesz. You are right, I want to give partial access to the backend for vendors only. So, my question is how should I set up the backend to allow the vendors to be able to update a calendar? Then, this calendar will be showed in the vendor's frontend page.
-
When you start a website from scratch and have to make both front-end and back-end of it, how do you set up your workflow? I’m a bit confused because 1) I’m new to PW 2) I’m setting up a marketplace where the vendors need to have access to the back-end, so they can manage their services/products, which will be listed in the front-end for “normal” users to buy them. More beginners' questions: What do you do first the back-end or the front-end? Is it correct to think of fields -> pages -> templates in this order? If yes/no why? Is the product page that the "normal" user see in the front-end, the same that the vendors have access in the back-end? Thanks!
-
Thank you. It's really helpful.
- 2 replies
-
- 1
-
- appointment
- theme
-
(and 1 more)
Tagged with:
-
Hello, I'm struggling to structure my website, so I thought I could have a little help from you guys. I'm making a doctor/clinic appointment/booking type of website. The website will list several doctors/clinics. The user (front-end) will be able to choose one and make the booking. Each doctor has her own page and offers one or more type of treatment. Each doctor's staff will have their own profile page(back-end) where she can login and update their doctor listing and schedule. The back-end part is my problem. How would you setup that? Regards
- 2 replies
-
- appointment
- theme
-
(and 1 more)
Tagged with:
-
Yeah. It seems that RWD vs AWD is like Audi vs BMW, a is all a matter of taste. Anyway, from PW perspective how can I call the right template(once I had identified the device)?
-
Quoting Garrett Goodman "Adaptive design is server-side, meaning before the page is even delivered, the server (where the site is hosted) detects the attributes of the device, and loads a version of the site that is optimized for its dimensions and native features." For AWD, usually a separate template is serve for each device. So, on the server-side I believe the task for PW is identify the device and load it's respective version. Any idea in how to do it? More info http://thenextweb.com/dd/2015/09/01/is-adaptive-better-than-responsive-design/
-
Hello, I've being doing responsive websites for a while, and since all the work is done on the front-end(browser) no PW interaction was needed. Now I need to build an adaptive website. For adaptive websites the heavy lift is done in the backend(server). So, it means that PW will have part of it. However, I don't have a clue of how to do it. I would appreciate any insights. Thank you, Zilli
-
Help to structure a project with subdomains and multisite.
zilli replied to zilli's topic in Getting Started
Thanks @LostKobrakai. Is it possible to treat the subdomains as "sections" of the main site, instead separate sites? The reason is that if my subdomain will hold just a few dozen pages, maybe I don't need to create a new site instalment. If so, can I create an user in the backend that would only have permission to that section of the website?- 3 replies
-
- multisite
- enterprise
-
(and 1 more)
Tagged with:
-
Hello, I'm about to suggest a CMF/CMS for a scalable project in my company and I really need your input here to get PW on board. The idea is simple - Build a main website - www.acme.com - And than build independent but related websites using the subdomains - product.acme.com / something.acme.com - Each subdomain will have their own website and staff team. What do I need? - All the websites should be able to have their own backend. The reason for that is because the staff from product.acme.com will be different from acme.com. So, I don't want a staff from product.acme.com to be able to "see" the acme.com backend. - To be able to setup independent pages design/features for each sub-domain. ===== It's something like google.com and their sub-domains. You have adwrods.google.com / maps.google.com / translator.google.com and so on. They keep their main brand visible - google.com - and add their different products from subdomains. In my case, the subdomains will only host another simple website. How would you approach this project? Please let me know if you need more clarification. Best regards, Zilli
- 3 replies
-
- multisite
- enterprise
-
(and 1 more)
Tagged with:
-
Hello all, Currently PW makes use/reference to the Apache HTTP server. However, we do have several other choices out there, and depending the use-case or the developer taste, Apache may not be the chosen one. So, why can’t we make PW HTTP server agnostic? It would be nice to see PW going neutral on this topic. Please share your thoughts. Cheers, Daniel