-
Posts
1,523 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
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. -
Gutenberg For ProcessWire ?!
Ivan Gretsky replied to Mustafa-Online's topic in Module/Plugin Development
Hey, @teppo! Last night I spent a few hours reading through Gutenberg docs and marketing materials. I must say those are very well written and the whole concept is appealing to me. But it seems to be coupled with Wordpress and not so easy to bring into ProcessWire. I know, there is a Drupal integration and the "editor for the open web" marketing stuff. But it still seems to me it is primarily for Wordpress for now. I am talking not about those static html type blocks with defined styling, but rather those they call dynamic, which use data stored in the database. I wish we could have an editor like Gutenberg (in tearms of UI) in PW where we could easily create static and dynamic (based on other pages) content for a content area. And we could easily add blocks ProcessWire way and maybe even be able to render them with ProcessWire or ProcessWire-like API. Kind of like a mix of Gutenberg and Repeater Matrix. I can see that as an Inputfield that could generate json data describing content and store it in the textarea fieldtype. Same way as Gutenberg does store its data as html+comments. Same way as CKEditor 5 seems to work. To generate that json we would need some kind of a an SPA editor with visual block representation. And GrapeJS seems to provide that type of functionality, calling itself a Web Builder Framework. I can imagine we could build whatever UI we need with it and add only what we need (no paddings, but rather a data description - look here). Maybe it will turn out GrapeJS does not do just that, but that's what I'm talking about)) And then we could query this field from PW template like foreach ($page->grapenberg_field as $block){ wireRenderFile("views/blocks/{$block->name}"); } $block could be a new virtual page-from-json type and/or a Page. -
Gutenberg For ProcessWire ?!
Ivan Gretsky replied to Mustafa-Online's topic in Module/Plugin Development
I think this one is pretty popular and powerful. Just to provide an alternative)) -
Hello! This field holds 3 pieces of data. The address, longitude and latitude. The latter two are numerical data which does not need translation. The address field is what is send to Google to get the coordinates. I do not think there is an easy way to make it multilingual (it is not now as far as I know). But there is always a way to store multilingual address information in other fields of the same page, and use this information to generate marker descriptions (for example) for each language needed.
-
That was it! Thanks, @kongondo!
-
Good day everybody! When I think about TracyDebugger, I always think about the invaluable functionality of this must-have module. But yesterday I had a new impression about TracyDebugger - its super appealing design (in places). I was installing Tracy on a new site and was astonished by the new look of a "Donate" button in the module config. It is super simple and probably even a standard PayPal button, but it's placement and a color contrast just struck me. I could not resist, clicked the button and made a $10000 donation. This is by far less than the value this module gives me, so wanted to give something back (and the magic button did its job, of course). But must be something with PayPal in Russia that it only let $5 of my donation pass though ?. So I suggest everybody go look at this button in the TracyConfig to learn some useful marketing tricks. And if you happen to be somewhere outside Russia please click on it and try to make a more than $5 donation to check, if the same limits apply in your country. So we can report to PayPal or something)))
-
Good day @kongondo and everyone here! I am trying to get my menus with MenuBuilder to work, but having some strange issue. This is my code: <?php namespace ProcessWire; $menuBuilder = $modules->get('MarkupMenuBuilder'); $mainMenuLeft = $menuBuilder->getMenuItems('main-menu-left'); bd($mainMenuLeft, '$mainMenuLeft'); And this is a screen of MenuBuilder admin page: The problem is I get 0 items. And only if I add the homepage I get 1 (and this is the homepage). Either I am doing something wrong or something got broken) Please help me!
-
I think this one of the most massive discussion about the project architecture I have ever read, featuring so many respected forum members, should not be left unanswered by the project lead. So feel like we need to bring it back up and ask @ryan to participate.