-
Posts
2,080 -
Joined
-
Last visited
-
Days Won
51
Everything posted by wbmnfktr
-
tl;dr - see below As @flydev pointed out... a page is more than just only a page. The confusion is real. Totally real for... at least me back in the days when I started using ProcessWire, coming from b2cafelog (nowadays WordPress), Drupal, Nucleus, Textpattern and many more "solutions". Yet... I never ever tried to explain a client what a "page" is in ProcessWire. For my clients a page is the last point/instance, in terms of hierarchy in delivering output, aka a real page. I never tried (after the first 10 clients or so) to explain the steps in-between. Even most designers and developers (outside of PW) get this part - and I don't even try to explain it most of the time anymore. For reasons. While everything is a page... you might want to explain it to your client in different terms. I most often use terms like unit, container, wrapper, entity, part of, fracture... or else depending on whatever I talk about. While I use a page as reference in a recipe, it's still an "ingredient, I can reference" for a client. Makes life easier. This "page concept" is NOT about communicating it to the client (for me!), it's for understanding the concept. When you get this... PW is not only your friend, but your best friend, wingman, best man, godfather of... you get the idea. These are/could be all the same - depending on the context and your setup. $page->title $ingredient->title $city->title $user->title Even though one is a page (endpoint) and all others are a page reference, comment, repeater... whatever. You seem to be very new to PW and came from Drupal, which is totally fine, and therefore you might JUST need to explore more parts of how the API and page handling works. This is not a newbie tip at all! It's what I did and I enjoyed it! You worked with Drupal so... you know more complex setups and concepts - I guess. I came from super limited CMS (see above) back then and learned a lot about PHP and whatever you could achieve with ProcessWire. For me it was freedom to do whatever I wanted to do. Till today. tl;dr/Conclusion: Think about 'page' as a concept and not a page. Or... let us know. We are here to assist and help to find a way.
-
"Good vibes and happy mood" music
-
Just gave it a try on 3.0.210 in a very minimal setup and it worked out as expected. Tested published and unpublished pages and languages in various combinations. Do you use any TextFormatter or advanced field settings for the CKEditor field? Or something like Autolinks or TextformatterPageTitleLinks? Maybe URL Hooks?
-
That's a very good call actually. My first thought were server logs. The ProcessWire logs get pruned after a while by the module @gebeer mentioned.
-
Unpublished pages point to admin login instead of showing 404 page
wbmnfktr replied to uiui's topic in General Support
Just another guess... what kind of setup is that production one? Standard Apache or maybe NGINX or CDN in-between there somewhere? -
Looks like bogus to me. Get those once in a while as well. I have Git running on most instances. So I can easily check any file changes. Oh... and when someone wants Cr*pto... always check if the exchange rate does make any sense.
-
Welcome to my world... kind of. My main hoster and most other setups I know handle log file rotation by default - so files don't grow that large and older log files will be deleted after either a few weeks/months or in case there are too many files in the folder. Can't remember the tool you use but it should have something like this as well. I remember Webmin had something back in the days. In bigger projects and when the client wants me to take care of most of the things I check the log files at least weekly - or when using a CDN - monthly and then dig through error-logs.
-
In case none of you have a nice little hook for adding a label to non-pw/non-core/non-ryan modules at hand, I'd like to suggest and discuss such a feature to mark modules by explicitly with either ProcessWire / @ryan or 3rd Party Module. Both for core and additional modules by Ryan in first place. The same for 3rd party/community modules. Reasons #1: Clients look into the modules section, see a huge list of modules, yet they were assured NO 3rd party modules were used. ? Doesn't feel right for the client, even though it might be totally fine. Hard to explain to someone that does only understands what he/she sees. There might be more very good reasons but this was my quite big annoying F**K UP last week. Any thoughts, ideas, or hooks?
-
Just pushed the 2023-04-08 update: ⚒️ Features Search: Added a first version (proof-of-concept) of the recipe search. #6 Prev/Next Links: Added previous/next links on the recipe pages to for faster navigation around recipes. #7 ? Bugfixes Twitter Meta/Social Tags #4 Internal links, SEO tags and assets #5 ? Misc changes Added: Transparency Report Added: Advertisement Added: Community projects Updated: About, Changelog Listing only 5 recent recipes on homepage, makes it a bit faster Enabled Table of contens on pages where necessary More in the Changelog.
-
ProcessWire doesn't care what the folder is called it lives in. I could be just /var/www/ or /public_html/ or /home/user/_client/domain.tld/. There are a few things you really need to take care of: $config->httpHosts $config->db* and the whole database setup of course file/folder permissions https://processwire.com/docs/security/file-permissions/ take care of all .htaccess files, especially in the root You could just move all files by hand or use either ProcessExportProfile or Duplicator. Some even just use Git to move a ProcessWire instance around. It get's a bit more complicated in case you want to run ProcessWire inside a subfolder of another project. But there are different threads about this here in the forum.
- 1 reply
-
- 2
-
I had to give it another spin/try. Reasons to convince a developer or web design agency: Reasons to convince a client:
-
Is this related to this? https://processwire.com/talk/topic/22847-processwire-dashboard/?do=findComment&comment=232002
-
Ok, I misread the part in the docs. Page List isn't working as I read that. I use collections for this/a similar use case. // https://daun.github.io/processwire-dashboard/#/panels/collection $panel->add([ 'panel' => 'collection', 'title' => 'Newsletters', 'data' => [ 'collection' => 'template=newsletter, checkbox_sent=0', 'sortable' => true, 'columns' => [ 'title' => 'Subject', // 'url' => 'URL', // 'modified' => 'Modified', ], ], ]);
-
Unpublished pages point to admin login instead of showing 404 page
wbmnfktr replied to uiui's topic in General Support
RestApi Jumplinks These are the only modules that take care of or interfere with your URLs - at least I know this for sure with these two. What I would do now is this: Check the Access settings in the template Check the 404 monitor in Jumplinks to see if the 404 exception actually exists/gets caught. Check for existing jumplinks in Jumplinks for that URL. Check that specific page you are testing with for entries in the settings tab under What other URLs redirect to this page? Check if PagePageHistory module is installed, which is needed for the previous point Check redirects in .htaccess. Check if the RestApi module is involved here and double check that setup. Check the settings in the Languages Support - Page Names module Check if there is something in _init.php, init.php, ready.php and maybe even config.php. Or search any of your templates for: $session->redirect and redirect Redirects don't happen that random that's why I am bit confused for this one. -
Unpublished pages point to admin login instead of showing 404 page
wbmnfktr replied to uiui's topic in General Support
Which version of ProcessWire are you using? Which modules do you use? Is the 404 page working at all? Does the template exist? Is there a redirect defined in the template? Is it the original 404 page, with ID 27? Is there something special with this setup? URL segments? Any hooks? Multisite? Multilanguage (I guess)? -
Do you make own designs or do you use finished designs or toolkits?
wbmnfktr replied to BlindPenguin's topic in Pub
95% custom. -
You can use a selector and hide the parent... https://daun.github.io/processwire-dashboard/#/panels/page-list?id=options
-
Feedback about my start and progress with PW
wbmnfktr replied to daniel712's topic in Getting Started
While learning ProcessWire you will burn through a lot of test and demo sites. Or at least I did. And it was fun. Just start building something you already know the structure of. Like a blog, music collection or movie review type of site. Those data structures are relatively easy so it's a good starting point in my opinion. You will get things wrong at the beginning or will find better solutions later on. Enjoy the process. I rarely use HTML-comments in my PHP files so there is nothing I had to change. There are two awesome plugins preservim/nerdcommenter and tpope/vim-commentary - maybe those have some settings available to master this part. Yet I support @flydev's recommendation of using VS Code could be a better option right now. You have way easier access to everything and always see where you are, where you might need to go, and yes... the whole structure. Way more important are extensions. That's way easier in VS Code than in VIM. Maybe not better but faster. The moment you know all necessary files, where they are, which names they have, which names and files might be in several places or are similar (init.php and _init.php for example) switch back to VIM if you like. FZF or Telescope are way faster and more reliable than VS Code's Ctrl+P feature. With NVIM's LSP setup and some configs it could probably outsmart VS Code extensions as well. -
Feedback about my start and progress with PW
wbmnfktr replied to daniel712's topic in Getting Started
So... there are more videos in german available. I recently found these from @hheyne. https://www.youtube.com/@henningheyne/videos They will help a lot to get into the topic of ProcessWire even more. The easiest way to get a basic understanding of PHP - at least in my opinion and for a good start with ProcessWire - the official tutorials are really good at this. They tell you how to work with ProcessWire and the absolute basics you need. You can achieve a lot with just that. Maybe not an eCommerce/shop system or similar, but a blog, portfolio, and such are absolutely possible. Maybe look into the existing site profiles to see how others do things. There are some interesting ones there. https://processwire.com/docs/tutorials/ https://processwire.com/modules/category/site-profile/ You really should play with these and give them a try. In terms of all the frontend stuff... that's a bit harder. Even though Bootstrap and UIKIT are nice frameworks, you should know at least the basics of HTML and CSS. Which brings us back to the beginning unfortunately. The way I learned most of the stuff was by playing with existing themes and templates - that's decades ago. There are tons of free themes/templates out there you could deconstruct. https://styleshout.com/ https://html5up.net There are good tutorials from Kevin Powell, WebDevSimplified, developedbyed, and many more on YouTube. Maybe give them a try. -
I have no solution at hand but can confirm that this module has some issues with PHP 8.x.
-
The Prepros live server is not capable of handling ProcessWire, just plain HTML/CSS/JS files. So using DDEV is probably one of the easiest ways to get started. On Windows Laragon would be a great choice as well. Especially as the installation is almost only one click. But you got that part already... the last thing I can say: Have fun and enjoy ProcessWire! Nowadays I use DDEV as well. While the setup is a bit complicated at first, you get used to it after the second or third time installing everything. And it's way fast and easier to manage all those different version of everything and spinning up a new project is super fast!
- 66 replies
-
- developing
- working with pw
-
(and 1 more)
Tagged with:
-
Do you use the on-demand file download (https://processwire.com/blog/posts/pw-3.0.137/#on-demand-mirroring-of-remote-web-server-files-to-your-dev-environment)? If so... disable it. It's perfectly fine within a running setup but once in a while it's not working as expected.
-
Imagine why Microsoft's BING AI is in some parts way better than anything else? Hint: Github Absolutely everything in terms of code is in Microsoft's hands right now. No matter that... there are more ethical questions in regards to this. What's allowed and what not. On the other hand, there are already models that found possible cures for lots of illnesses, more critical things in terms of society and such, some are already in real-life studies, like some possible cancer cures and even old Nicola Tesla patents and whatnot. I hope and wish people want unopinionated and unbiased models. Otherswise the echo chambers just became million times bigger than already. BUT... noone can say which model/AI is really that neutral. So... yeah. In terms of writings and suggestions... GPT4 is already quite good as this. Feed it your last 10+ books you read and you will get awesome results. Depending on your input and your prompt... you might be impressed. You can. I tried it with Inferno (Dante, not Dan Brown) and some other similar books. You could ask whatever you want. Just ask with some optimized prompts. Maybe even try DAN prompts or use extensions to allow internet access. ? There is so much going on right now. If you are interested in models and specialiced prompts... follow Brian Rommele on Twitter. He has some interesting prompts that show you how to "manage" the deeper level https://twitter.com/BrianRoemmele Just tried to find a bookmark of someone that trained GPT on a local Raspberry Pi for his needs. There are already so many solutions out there. Most of the things we experience right now... are 6+ months old already and were just made public to us. Or how could so many companies, services and even single person offer such incredible tools within weeks? BING AI, Canva AI, Mozilla AI, Brave AI... and... much... more...
-
Just took a moment to play a bit more with ChatGPT (v3.5) and built a simple module with it. While it was pretty easy, ChatGPT needs a lot of assistance to make things work out as expected. Adding the Processwire namespace? Nope. Taking care of user input and sanitizing? Nope. But that's totally fine for me. It took about 30-40 minutes from start to published on Github. See: TextformatterAsciiEmoji The README.md was also written by ChatGPT.