Mike Rockett
Members-
Posts
1,455 -
Joined
-
Last visited
-
Days Won
9
Everything posted by Mike Rockett
-
Hi, and welcome to ProcessWire! ProcessWire uses a separation of concerns approach, where the backend is completely independent of the frontend. As such, the frontend is not considered a theme, as it is not integrated with the backend in any way (by default) -- this gives designers complete flexibility to define every aspect of their site. Each Page (be it in the root of the Page Tree, or a child Page) maps to a Template (Setup > Templates, and each Page-Template assignment can be found under the Page's Settings tab), which maps to a Template File (/path/to/site/templates/). Each Template defines what fields pages allocated to it will use. So a "Basic" Template could have "Title" and "Body", and any pages that use the "Basic" Template would have those fields. In terms of a hierarchy, Pages can be moved to any location in the tree. When you move a Page, it simply changes the effective URL and physical location in the tree. It does not change how the Page itself is presented, as the Template and Template File would still be assigned. Regarding alternative text, that would depend on how the template builds your page. If the image in question is set in the actual Page editor, then you would be able to change the alternative text there. If it is set explicitly in the Template File for that Page and associated Template, then you would need to change it directly in the Template File. So, for us to answer this question in more detail, we would need to know a little more about the site in question. I've given a brief outline above, even though your question could do with a little more clarity. If I haven't covered something (perhaps more specific) that you need to know, please let me know. Once you get the grip of ProcessWire, it's simply impossible to look back - WordPress looks very limited in comparison when you start to understand the power of ProcessWire.
-
I'd be inclined to switch to a newer version. Even 5.6.5, which is when they changed it, is considerably old now. Due to its age, I don't plan on supporting it. In the interim, you could always try removing DEFAULT CURRENT_TIMESTAMP from the schema file (schema-create-mc.sql) before installation as the insert statement does force it. Untested, but it should work in theory.
-
@Joss Hi - that's a legacy error from an earlier version of MySQL. What version are you running?
-
@Kiwi Chris - great, working fine now. Re: css: Yeah, I'd keep it in the head and perhaps gzip it (you're already using aiom, so most of the work is done already).
-
Glad to know Jumplinks came to the rescue here (and that you used selectors), however it doesn't appear to work as index.mvc is still on the server. So if I request /index.mvc?article=6, it attempts to download the mvc file instead of redirecting. I'd also recommend moving the CSS reference up to the head to avoid the FOUC.
-
Patreon was hacked. But their logo reminds me of something...
Mike Rockett replied to Mike Rockett's topic in Pub
Finally: http://www.underconsideration.com/brandnew/archives/new_logo_for_patreon.php -
You're welcome. I can do that, considering that it is already implemented. It's a workaround that I'm not particularly fond of though (from a namespace point of view). I'll keep it in until an alpha release, at which point maybe someone has a better alternative that can be used instead - so we can take it from there. Are you using the legacy branch?
-
Small update
-
Agreed - you can take the MVC approach using template-files. If you really wanted to use a router like that, you could always create a Process module to use as a fallback to non-existing routes. Jumplinks 2 will use this methodology on the 404 event, where it collects routes from the database and applies a single action. You could do something similar where the module sets up the router (in the case of Jumplinks 2, it is FastRoute), and then have it include a routing file. From there, you'd have access to the global scope and do pretty much whatever you want to do.
-
Yeah, I tend to stick to the tree-model for this kind of thing. In this case, I tend to use "legal/terms", etc. If need be, there's always Jumplinks for quick redirects.
-
Yeah, looks like it's a VirtueMart site.
-
I can't initialize the processwire install from browser
Mike Rockett replied to Chamche's topic in Getting Started
I just tried to check, and the response headers indicate that the server is running nginx. Did you change it? It doesn't show a PHP header though. -
If you need extra customisation, try out ParsedownExtraPlugin.
-
Right - untested code, based on a theory trying to avoid two jumps. Wish servers made this easier.
-
Lol at the admin path - opensesame! Brilliant
-
I would say that each rule should force both scenarios: # Force www and HTTPS RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=302,L] # AND force HTTPS and www RewriteCond %{HTTPS} !on RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=302,L] Remember to change 302 to 301 when done testing.
-
I'm so sorry - wasn't thinking when I wrote that... My apologies. @gurkendoktor is correct though... I'm not sure how the system works with PW, but it should desregard old cookies, no?
-
Surely you mean cache?
-
Hi, and welcome to the forum. We do have wireshell, which can be used to install modules from the directory by class name. As for Composer, I think that the module would specifically need to support it - widespread implementation hasn't been done as yet, but I'm sure we'll get there in the future. There is a third-party installer for those modules that do support it. Hope that helps.
- 2 replies
-
- 4
-
-
- command-line
- drush
-
(and 1 more)
Tagged with:
-
Update download link on german website
Mike Rockett replied to dotnetic's topic in Wishlist & Roadmap
Correct, they're hosted with Ryan. DNS Dumpster reports the IP of IBM SoftLayer, but they only update their records every now and then so it's safe to assume those are now hosted with Ryan on Amazon. -
Update download link on german website
Mike Rockett replied to dotnetic's topic in Wishlist & Roadmap
I don't think those sites will last very long - very likely to be taken down once the new site is up. -
Just a note about CI: I believe that the next version (4?) will be quite different to the current version, but will be familiar enough for those familiar with CI. Laravel is quite easy to learn, but I would suggest taking a course on PHP so you use a framework well.
-
At the moment, I'm on Win10, using ST3 and scoop for pretty much everything dev-related. Looking to switch to the next iteration of Ubuntu, which I hear is dropping Unity in favour of Gnome. I can imagine it'll be quite the change, especially with tools exclusive to Windows, such as Adobe CC. (so I'd have to use wine or a VM for that). Guess I'll miss WIndows incredibly as I'm so used to it, but change is as good as a holiday, as they say, and I'm in serious need of a holiday (or ten, consecutively). As for why I'm going to land up going this route: Windows is starting this whole SaaS paradigm, which I'm seriously not into at all. If I did land up getting into it, I'd probably only do it for the unix part of Windows. That said, better to develop on Linux as most servers are linux-based and, with Windows, you can ignore a whole host of things that don't make any difference (you know, like permissions, paths, etc). Side note: Office 2016 feels like a joke to me. Much buggier than 2013. However, I really like Exchange, but I'm sure there are good Linux clients that could handle Exchange pretty well (there's also OWA, which is actually pretty good for my needs).
-
Hi TheoTop, and welcome to ProcessWire. The methodologies and philosophies of CI and PW are considerably different. When it comes to MVC (or other similar chain), I prefer to use Laravel - but PW can easily handle most things quite well (especially in terms of information storage with relations etc). With that said, I recommend you have a look at the various courses available online to better your skills before you start choosing between frameworks and systems. TutsPlus, Coursera, Khan Academy, just to name a few. When you've done that, grasping Laravel/CI/PW/etc will be much easier, and you would be able to easily draw your own conclusions and choose the right framework for whatever task you have on hand. For payments, I think these are the go-to PW modules https://github.com/apeisa/PaymentStripe/ and https://github.com/apeisa/PaymentPaypal/. If you're looking to de e-commerce, try out https://www.padloper.pw/ (I haven't used it myself, but it looks perfect for the task - others can comment in on that). Best, Mike
-
Great stuff, Ryan! In SA, I've actually picked up a considerable speed improvement, especially on the forums. Not sure if that difference would affect you or Europe as much as it does here. Very snappy.