-
Posts
1,473 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
Thanks, @johndoe! The conversion did not work on my local xampp with some php 5.6, but did work on a live server. I can guess some requirements are not met on localhost. It would be nice to know those requirements, bit for now I know that I should try to keep the server environment as fresh as possible (which is a good thing anyway)))
-
This one is converted to webp with black background by GD on my localhost. I tried another one it behaves the same way. Is there any requirements on GD version or php?
-
A lot of (even shared) hosting providers nowadays use nginx for static. And you may have no control over which extensions they include. So renaming to .php could be more secure than doing .htaccess restrictions in some cases.
-
Using halt() within a function in template file
Ivan Gretsky replied to Ivan Gretsky's topic in API & Templates
Thanks @bernhard! I did try about the same tricks to make it work and ended up just doing exit(0); -
Using halt() within a function in template file
Ivan Gretsky replied to Ivan Gretsky's topic in API & Templates
Yes, that is what I need to do. But in a function, where $this (which contains current template) is out of scope. -
Good evening (at least in my part of the world)! Is there a way to call halt() method from within a function in a template file?
-
☁️ Duplicator: Backup and move sites
Ivan Gretsky replied to flydev's topic in Module/Plugin Development
Yep) There is a link to process module that is broken "by default" if the process module is not installed. And I would guess most of the time users would expect an admin page to be in place after installation for such a module. Maybe reconsider and make it auto installed? -
Maybe not the direct answer to your question, but You can easilly enable/disable Tracy in config dependant on your $config->debug setting.
-
Maybe edit the 1st post of this thread too?
-
Thanks for your answers and for you generously shared work, @teppo! I really like your Wireframe idea - a well-established and documented way to structure code in ProcessWire MVC way. So one could follow rules that are thought out and described. I understand quite well that in order for this to work one should give up some of his own preferences) Will be looking forward to next additions to the project we've been talking about here.
-
I can relate to that. But the thing is I often do not do my html/css/js myself and pretty often people with very little knowledge of php are to make minor changes to view code. That's why I try to have my markup as close to raw html as possible. And render functions are clearly the opposite. A am with you here. Entities should not be multiplied without necessity)) And that's why I do not quite like the placeholder thing. I think it should be that generic call for controller and view. And in this specific case sidebar usually is not tied to a particular template. So this thing seems "too opinionated" for me) I even think that the whole layout thing can be moved to view folder. I now think it is more clear to keep all the view related stuff in one place (though i did use dedicated layout folder in the past - now it is inside the view folder in my recent projects).
-
As MVC is about separation of concerns, as you said a number of times yourself, @teppo, I think render functions are not so good here. Because a html/css is mixed too much with php. Logic and presentation together again) I was talking about something like described here, with dedicated controller and view. I looked through recent projects for examples of those partials. These are common ones: menus; breadcrumbs; sidebar; repeating forms (any repeating elements really, anything like wordpress widgets / joomla modules).
-
Cool thing! Is there an easy way to include all the necessary fields (by name/type) from Repeater/RepeaterMatrix fields?
-
Two more) How is it possible to separate logic for partials from their presentation? I often find the need to prepare content for partials same way as for the views. Do you have experience of using Wireframe with RepeaterMatrix based content?
-
This time you came prepared, @teppo! Great intro post and a cool documentation site. Congratulations! I did not have time to dig into it (yet). The 1st question that comes to mind is can twig or some other templating language be plugged in for the views?
-
Show field only when page status is published
Ivan Gretsky replied to markus_blue_tomato's topic in General Support
I am not sure I quite understand your problem. But maybe this API reference can help? If not, feel free to explain yourself a little better?. Source code would be the best. -
Good evening here) Maybe this feature can help you to manage users with lots of custom fields. The frontend login should be managed with some custom code or a ready-made module like this one.
- 1 reply
-
- 1
-
Handling Last-Modified and If-Modified-Since
Ivan Gretsky replied to marc1n's topic in General Support
Good day, community! Somehow this one was left unanswered since 2015! I have googled and found the question, but not the answer. Does anyone has a ready-made solution? I know that processwire.com has these, but they are probably added by ProCache.- 1 reply
-
- performance
- cache
-
(and 1 more)
Tagged with:
-
About ssl certificate and https://
Ivan Gretsky replied to franciccio-ITALIANO's topic in Getting Started
@franciccio-ITALIANO, is there a direct link to your site? Could you post it for testing? -
New blog post: FormBuilder v38 released
Ivan Gretsky replied to ryan's topic in News & Announcements
Great to see updates to the major pro modules. Looking forward to new RepeaterMatrix version!- 1 reply
-
- 5
-
Page (SELF) not saved in Page Reference
Ivan Gretsky replied to NoremPload's topic in General Support
See ryan's comment on this here. Check teppo's module as a workaround. -
There is a github issue that makes Soma's answer even more clear and proposes a solution.
-
I was reading a bit about Cloud9 yesterday, which is now an AWS service. Could this (cloud in-browser IDE and everything running on a remote server) be an ideal solution for developing on a low-end machine? There is also a github-trending code-server which offers vs code in the browser. But it probably will need much more effort to set up. Just for an alternative
-
adjust “en_US.UTF-8” as needed
Ivan Gretsky replied to franciccio-ITALIANO's topic in Getting Started
I think it will be it_IT.UTF-8. Was looking for a list of locales, and found this one. Does not look like something official thought) -
Gutenberg For ProcessWire ?!
Ivan Gretsky replied to Mustafa-Online's topic in Module/Plugin Development
Nobody's talking about bringing content builder stuff to the core. I guess only Ryan could)) But the request for content building is high. Content is king. And RepeaterMatrix + Hanna codes are not as user friendly as Gutenberg seem to be. SPA editing is way more pleasant than opening and saving things one after another and adding images only after 1st save. PageTable Extended showed a way true block editing could be done in PW. Frontend editing is another step that could revolutionize content editing, but I never read about any good implementation. RepeaterMatrix is cool and could be even better if it would be PageTableMatrix with a similar Inputfield))) I think we can and should find a way to solve this need in true ProcessWire way. And we have to look at competition. Gutenberg might be hard and messy for developers, but it is desirable for end users. Let's make good for both using our strong points. P.S. js page api was on the roadmap. Might be a good fit here once it's done.