-
Posts
1,473 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
@bernhard Thanks for that. But the thing I do not understand is how to get the right map object in js. It should be instantiated already by that render method (hope I am using the right terms))
-
Good day! Really sorry if this has been answered - I really tried to read through 17 pages of this topic, but I could easily miss something. I need to implement map re-center on window resize. I found this tip among others, but I just do not know where to put the code). I generate markup in php the standard way like this: <?php echo $map->render($page, 'map', array('height' => '400px')); ?> Please point me to the place I can put all those event listeners from the Google maps API.
-
Updating module(s) from private repo
Ivan Gretsky replied to Rudy's topic in Module/Plugin Development
That is a nice question that has been risen a few times in a context of paid ryan's and apeisa's modules. I do not think there is a solution to this yet. -
PW 3.0.37: Core updates + ProFields Text Blocks
Ivan Gretsky replied to ryan's topic in News & Announcements
I think this one little upgrade is worth being mentioned in the blog post. If I get it right, we are finally able to address page save and field save events for the page in one hook! Wow! -
I have large images on a site which I will be creating variations from. The customer wants to watermark-protect large images. That is possible to do with @horst's Page Image Manipulator. I will be also creating thumbnail images, which do not require watermark. The problem is it is quite easy to guess the url to the original image from the variation name. Is there a way I can restrict the access to original images?
-
how to deal with an image to fill up a div in responsive website
Ivan Gretsky replied to adrianmak's topic in Dev Talk
I think that embedded goggle map object will auto scale to its container and will fit much better, than static image. I would do that if there were no restrictions on using it. -
You got me right. Ok, will go for CustomAdminFiles.
-
I got all tabs but Content turned off. So the lonely Content Tab seems unnecessary and confusing. I thought that it would be better to see no tabs at all when only one is present. I know I can rename it, but that hardly makes it look any better. I surely can live with this tab, just wanted to know if there is an easy workaround.
-
Not sure if this one is connected with the module directly, but still... Is there an easy way to hide the Content tab if all the other tabs are disabled with permissions?
-
@LostKobrakai You should try to communicate that to Ryan if you have the means to, as it is something important for marketing. I did try to mention it earlier, but with no luck. I think there is still time to rethink and redo the transition to the new repo.
-
Numbers do not mean a thing in themselves. It is the human perception that makes any kind of symbol play role in the real life. So this one is to help our perception make ProcessWire a lucky piece of software)) P.S. And this is another call for everybody on github to star the new main repo, as the stars from the old one obviously were not transferred)
-
That is it, thanks.
-
Good day! It seems like I got about the same question, so will post it here. I have this code $nextAction = $p->next_action; try { $this->$nextAction($p); } catch(Exception $e) { bd($e, 'Exeption!'); } and it does not work if a call a method that does not exist. I get a WireException, and it is not caught by try/catch. Is there a way to make it work? P.S. bd() is from awesome Tracy Debugger. If you do not use it yet you certainly have been away to a far away planet or do not do any code in PW .
-
Good day, @adrian! Is there anything preventing you from publishing this one in module directory? I only found it 'cuz I knew where to look for .
-
Good day! I got a repeater with 2 Page fields inside of it. The second one is only visible if the 1st one has a value. This is possible since this release. Now I need the selectable pages of the second Page field to be the children of the 1st one. And this is where I am in trouble: the $page variable returns the page that the repeater is attached to, and $this return the InputField. Is there any way to get the current repeater page in the Custom PHP code to find selectable pages?
-
CMS Critic Powered by ProcessWire (again) + Case Study
Ivan Gretsky replied to ryan's topic in News & Announcements
@Jonathan Lahijani Great post and a wonderful case! Could you tell a bit more about how admin workflow is organized and how admin interface is customized for each role? It seems like there is something going on both in frontend and admin at least for some roles. And the admin theme seems to be modified (at leas there is no PW logo at the top). -
So there is no way to format it in List of fields to display in the admin Page List template config? I could not put no php functions like date() in there. Am I missing something obvious?
-
That is the topic I was looking for... What if I need to output a created date? Could not find output formatting for it.
-
Come on, @horst! You could be a modest person, but publishing modules under different names is too much. I am used to rely on authority a bit while choosing a module to download. Your name and the vast amount of good stuff made under it has always assured me I can trust that another one new. Probable same for others. Or is some technical issue?
-
I guess you can use this method to check the existence of a filename: $page->template->filenameExists(); But it will probably not cover all cases. For example, when there is only one controller-like template for all templates. And I did not find a selector for that, so only in a foreach loop.
-
Thanks for participation, @szabesz. But I have read several times about admin being "just another application on top of PW framework" and "just a branch of a site tree". Everything happen the first time sometimes, so it just might be the time to discover another trick . But I would be happy to find out as much as possible about what @renobird was talking about too.
-
That is what the initial intention is. I will appreciate you giving me any piece of advice on that. And if there is something to be said on question of alternative admin under different root, that will still be interesting.
-
Good day, everyone! I am having this idea for quite some time already and want to discuss if it is even possible. I really like using ProcessWire admin for site managing purposes. Some of my clients are also using PW admin interface. Recently I am meeting more demand to create role-based access with complex restrictions. I tried to modify the built-in admin interface for some roles, managed to build quite a different user experience for them. But It was not such an easy thing to do. More to that, my own admin interface got cluttered with the admin pages that were only intended for some other roles. And there is no single place for template permissions management to easy and quickly make things work as you expect. So the idea is to try to go another way. Not to adjust the common admin application, but to have another one. I am not talking about building a front-end admin, but about having another admin area with ProcessModule-based pages, but with a different set of them. For most cases quite a limited set of them. I do not know where to start. I can only imagine that some things are hard-coded, so that can be a problem. But still, what do you think about it?
-
It's like your daugter's getting married. The name has to change and you got to let go. You better be prepared for this Ryan - test on this one of yours . This decision is clever. We need to take care to transfer everything (all the stars!!!) to the new organization. But I am sure it is thought out already.