-
Posts
1,360 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Hi Mike, welcome, as you are used with Notepad, then you are on the best solutionware to keep using it, easier than wordpress really. Read a bit there and choose an output strategy that feel your dev experience (biased suggestion: Delayed Strat.) : https://processwire.com/docs/front-end/output/ https://processwire.com/docs/tutorials/default-site-profile/ Then watch this vid: And enjoy ? edit: before you ask, when you will stumb on some ten years answer forum thread, yes they almost still work in 2022. But at least upgrade your php 3 install ?
-
Module Concept for Error Reporting via Email
flydev replied to gebeer's topic in Module/Plugin Development
What about setting the flag as Notice::log || Notice::logOnly ? Also check @ryan comment : -
Module Concept for Error Reporting via Email
flydev replied to gebeer's topic in Module/Plugin Development
@gebeer Interesting. You want to hook WireLog::___save() and recover the type log on arguments(0) ? https://github.com/processwire/processwire/blob/dev/wire/core/WireLog.php#L96-L175 -
I commited some fixes, will push it at the end of the day. But yes, some modules need to be taken case by case, thats why I think everyone using it could make it better by sending pull-requests. There is also some hardcoded style set by js calls, I put already comments on a todo/known bugs section. About the switch, I think the better solution is to reload the page to apply the default theme set by the user, brainstorming needed there. Thanks for your interest ✌️
-
Bro, I feel very sad for you in term of having fun while developing (working). I feel lucky to be one of those guys who can refuse tasks that should be done on these pieces of software mentioned above, even more when you worked with ProcessWire. However, it is true that you have to take into account an "architecture" already in place. Bosses are "afraid" of change that concerns the backbone of their business, especially when it works as is. What I would do personally, - it also depends on the "size" of the internal architecture and context - would be to rewrite the mess under processwire in your spare time and give them a demonstration of why and how it's better, with arguments about the added value in terms of maintaining and possible future hiring of developer(s). I think it's easier and safer to hire "pure" developers rather than "closed and trained" developers on a given CMS (multi-skilled). I mean there, a pure PHP developer can jump on ProcessWire, where like a guy like me, can't take the other the opposite way. "courage brother"..
-
Short answer from mobile. Try with that in .htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /2022/$1
-
How to redirect the user back to desired URL after login page?
flydev replied to tires's topic in General Support
@tires the hook need to be Session::loginSuccess - the one given by @adrian - to redirect the user, after he log in. You can write the target url in the session, and you do not really need the GET variable. But as I said in the first idea, if you need to differentiate a user which come from the mailed url, you "have" to give a GET variable or a segment. If you do not do that, the url set in the session will be for all users. It might not be an issue for you. I all needed template, just set $page->url in the session. Apply logic there. And as I said, without distinction, it will apply for all users. -
Quite easy ? (see: https://github.com/baumrock/AdminStyleHello/issues/1#issue-1401993078) https://github.com/flydev-fr/AdminStyleDark/tree/dev
-
? Perfect, checking it, thanks.
-
@bernhard could you take a look at https://github.com/flydev-fr/AdminStyleDark Is this the right way to do it?
-
The markup regions strategy has me completely confused.
flydev replied to Boost's topic in General Support
Its a matter of taste and organization. You can have 3 pages and only one template. If services and about was using the same template basic-page, you end with only one basic-page.php template to work with. The strategy used and the templates are two distinct things. Add Pages to it, and its 3 differents things. -
How to redirect the user back to desired URL after login page?
flydev replied to tires's topic in General Support
You can write a simple hook, and to redirect to a specific url, you can set the url in the user session, once logged, redirect and unset it. An idea could be to set a GET variable in the link you send to your users so it will work only for theses links, then do the logic in the hook (about checking for the existing GET var and setting the url in the session). Check this thread for the hook : -
I must admit that I didn't understood this statement as it was working as expected lol
-
@Boost I think yes, I never used markup-region, maybe pw-3.0.61 introduced new api functions or markup-regions things which are required from there. https://processwire.com/blog/posts/processwire-3.0.39-core-updates/ Edit: I read the ProcessWire 3.0.61 core update, I think I am missing some details as I don't use this strategy, but clearly, the region strategy seem to be introduced on this update yes. Let's wait others users to give us more details in this thread.
-
I was sure I had already saw an update made by @ryan to make SkyScrapers using markup-region (https://weekly.pw/issue/129/). The demo I linked previously is made with it. There you go: https://github.com/ryancramerdesign/skyscrapers2 ?
-
I still use 2012 code from time to time, it make me also smile when it happen. About the tutorials, a real website, it depend what you call a real website. (I am not being rude, and I get your point, but I think that the tutorials need be done by the community, maybe we should follow an official guidelines). For example, for me, you would need to put your hand in Vite, Svelte, and how to mix them with ProcessWire to get data which mean to build a module that will inject custom headers, or use an internal API, and make yo call ProcessWire Headless cms things. For others devs, it could be other stack / frameworks, and we all know there is a ton of them. So you end up in what PW is the best => freedom, and I think IMO that it will be hard to satisfy everyone. ? For beginners, there is some good up-to-date doc, like https://processwire.com/blog/posts/starting-with-the-blank-profile/ and also tutorials - https://processwire.com/docs/tutorials/ - and for a real damn good example real website, the update profile SkyScraper which can be visited there http://demo.processwire.com/ , downloaded, dissected and modified. Maybe, again, the real need is to organize better what's already exist.
-
@gebeer there you go: https://github.com/davidhellmann/tailwindcss-fluid-type https://play.tailwindcss.com/TegGD6vkSM
-
I am used to use rem, the reason => web accessibility => a pixel is not responsive and with some algebra (lol) for fluid typo, the concept is called Poly Fluid Sizing and using tailwindcss utilities? Rule them all with this linear equation definition, which result the font-size : Take a look at this sample: https://codepen.io/neil/pen/agzZVg And give a read to : https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/ ✌️ Edit: for the rest, everything with a tailwind.config.js, it's so cool: https://tailwindcss.com/docs/grid-template-columns & #arbitrary-values
-
The extension look cool and will install it on Windows, but its not available for Chrome iOS :(
-
@Pete ? A dark-mode could be available to view the forum ? iam near 40 and my eyes need more obscurity ??♂️?
-
After reading again Steve's messages, I added a new setting (enabled by default) which if set, delete orphaned logs files from the folder. Update to v1.4.26 to get that.