-
Posts
1,487 -
Joined
-
Last visited
-
Days Won
16
Posts posted by Ivan Gretsky
-
-
Sounds interesting! Can you share the hannacode?
But I still need this module as I have projects with may too much content to fix)
-
It seems like aspect ration auto-determination doesn't work. Created an issue. Can anyone confirm the bug?
P.S. I started to doubt... Was it ever a feature? I was sure it was...
-
Partials' overrides didn't work because of a typo. I think this PR fixes that.
-
1
-
-
Big thanks for this, @teppo!
This was supposed to be a New Year present judging by the date. I was away and could not receive it. Luckily we have an Old New Year here in Russia, so the present is still very much on time))))
- I have quickly checked this new feature. Seems exactly what I was describing as the first option. It works great for template views. It didn't for Component views, but it seems I could fix it with this PR. I am not sure partials work ok yet. Will check later. What else should I check?
-
I would love to have an option to configure Wireframe to not use default view files are used in case a prefixed version doesn't exist. This way it would be easier to find out what else should be overridden when creating themes. I guess the best thing would be to have 3 options here:
- Use default view files are used in case a prefixed version doesn't exist.
- Through an error in case a prefixed version doesn't exist.
- Output nothing in case a prefixed version doesn't exist.
- It would be great to have the second option from my OP one day, but this solves my current demands 100%. Really cool!
Again, big thanks for this! I love the way you improve Wireframe taking our input into account. And it really amazing how we all can create the software together these days) We often take this for granted, but it is really a miracle looking at it from back in the days))
-
1
-
@teppo, just in case you are in doubt what is that what you can gift to the world this New Year, I am quite sure the world will be delighted with the new Wireframe version with themes support))
Well, maybe not the whole world, but certainly some minor parts of it)))
I do not know how do to say "happy upcoming New Year" in English or Suomi, so I'll put it here in Russian: "С наступающим!"
-
1
-
-
23 hours ago, Alexander said:
If someone could share simple user tracking event module for ProcessWire that we can adopt for use with tirreno, it would be highly appreciated.
The only one that comes to my mind is User Activity of ProDevTools suite. This is of course a Pro module, but it is the only one of the kind that I have worked with.
I hope I understood right what you have been asking about)
-
On 9/9/2024 at 1:12 PM, bernhard said:
Done!
Here is the link for everybody to submit a review 🙂 https://www.softaculous.com/review/ProcessWire
If you are short on time: https://www.softaculous.com/rate/ProcessWire
Both without registration!
I have done this. Hope it will get some more deserved attention to PW. And this post is supposed to bring this pinned topic up in the recently updated list for those who, like myself, read the news there. And to get some more ⭐⭐⭐⭐⭐ for us on github)
-
1
-
-
On 11/6/2024 at 9:41 PM, kongondo said:
Anyone got xdebug + WSL2 + DDEV + VScode working please? I have read the tut in the DDEV docs but it is not working for me.
- In VSCode the Xdebug session starts. On the website Xdebug doesn't kick in.
- After a while, VSCode breakpoints turn transparent and hovering over them says 'invalid breakpoint' or something like that.
- I did attempt all the WSL-related troubleshooting in the DDEV docs, e.g. the telnet connection. Was hoping for a question here.
- After a while VSCode says port 9003 closed.
- Sometimes I see notifications from ProcessWire (e.g. headers already sent) in the debug output.
- I am not sure whether and how to append the port number 9003 to the ddev url. E.g. mysite.ddev.site:9003. If I do this, the website hangs (chrome website cannot be reached).
Any ideas?
Thanks!
Good day, @kongondo! Have you managed to get it to work?
P.S. I have managed to make it work both for web and cli. The only thing that I still cannot figure out is how to launch a specific php file (see an example without ddev below). Still can't find out how to start it not with php but with ddev exec php.
{ "name": "Launch test.php", "type": "php", "request": "launch", "program": "${workspaceFolder}/test.php", "cwd": "${workspaceFolder}", "port": 0, "runtimeArgs": [ "-dxdebug.start_with_request=yes" ], "env": { "XDEBUG_MODE": "debug,develop", "XDEBUG_CONFIG": "client_port=${port}" } }
I have tries adding "runtimeExecutable": "ddev exec php", but it didn't work for some reason:
Error: spawn ddev exec php ENOENT at ChildProcess._handle.onexit (node:internal/child_process:285:19) at onErrorNT (node:internal/child_process:483:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn ddev exec php', path: 'ddev exec php', spawnargs: [ '-dxdebug.start_with_request=yes', '...', '...' ] }
-
10 hours ago, Alexander said:
While this post is not intended to be an advertisement, if someone from community is facing challenges related to online fraud, user spam, or security, please feel free to contact me directly.
Thanks for an interesting perspective and for the commendation @Alexander! As you already mentioned your new open source thing, expand on it for everybody. We are in the Pub anyway))
-
2
-
-
Ok. Now I got it better, I think. Now I have _init.php prepending wireframe.php that generates settings array, that I then pass to wireframe->render(). Some absolutely general settings I pass down with setting() function.
If we had composers, we could move all my code in _init.php and wireframe.php to a dedicated class.
Where would these composers be in places if file structure? How would we access data from them in views?
-
(Deleted)
-
1 hour ago, teppo said:
hat being said, the first one sounds like an easy to implement thing as well. I'll have to take a closer look at the code to be sure.
Great! Looking forward to see it in Wireframe! Thanks for your work and talent!
-
1 hour ago, teppo said:
you can override some features, but those that have not been overridden are the same as in the "parent theme" — right
Yes. But I think there could be an option to either use parent's features or to indicate that this one is yet to be implemented in a theme (through an error or warning).
-
I mean pull request in the module repo - https://github.com/kongondo/MenuBuilder/pulls
Thanks for the code! I've seen it. But didn't try yet. A github pull request is just an easier way to deal with code change proposals.
-
1
-
-
5 hours ago, Roych said:
I added the fix that is working for me here. I'm in PHP8.3 and it works.
Great! Did you create a PR, so we can like it and make it easier for @kongondo to fix this for all of us?
-
Good day @teppo!
Another question from me)
I am building a solution based on PW and Wireframe, that needs the theming functionality. That is switching theme (default views) for all the views and components. Layouts and partials probably too. Is there an easy way to achieve this with current code? Maybe a couple of hooks?
I can see two ways how it could work.
- Put `alternative-default.php` everywhere the `default.php` files are and somehow tell Wireframe to use those prefixed files. If there is another view except the default one, the prefix should work as well. Like `alternative-json.php`. Probably an option should be available whether to fallback to defaults without the prefix or not.
- Create an overrides or theme folder somewhere and have somehow point Wireframe to use views from there.
For my personal need the 1st approach seems to be a better one. But just maybe it is easy enough to provide possibility for both?
Thanks!
-
1
-
On 12/1/2024 at 1:37 PM, teppo said:
One of these is Composers, likely similar to what they've got in the Sage theme for WordPress: https://roots.io/sage/docs/composers/.
Thanks for sharing. I am still wrapping my head around the concept. I it passing variables to a specific view... seems like it. But I am not sure I quite understand what problem does it solve. If you would like to discuss it, a real-world example would help)
-
How are you doing, @kongondo!
Your module is a blast! Still finding some really cool ways to use it to control how menus could be controlled from the admin.
The thing that really worries me is that the module seems to be not fully compatible with newer versions of php.
Is there a chance you could find some time to upgrade it anytime soon? Or are you willing to accept PRs with fixes? I can see one that is not dealt with yet, so curious if me or someone else should try to come up with solutions with compatibility problems?
Thanks!
-
Good day, @Robin S! Thanks for the module! I've used it with a great pleasure on my single-language sites. But now I need to set things up for the ML site. How would you suggest to do that?
I think I would need both language-dependant labels AND urls. Is it better to handle this with hooks, or there could be a way to do it from the UI?
-
They need to get us used to some more obscure syntax before they introduce the next logical step - mandatory compilation. So be happy they are boiling the frog slowly and we still have a few more happy years just scripting.
-
2
-
-
Good day @teppo!
How is it going? I am using Wireframe as a basis for almost all sites I work with. So really hope you're doing fine) Are there any new great plans for this module?
There is a function to create Wireframe folder structure from admin. I was wondering could it be done via API? Need this for a setup script. I know it is not hard to create folders in cli, but a one liner using API would be just neat.
-
Hey @olivetree!
You can use Remote development plugin for VS Code. This way you can work on your staging (or prod if you like cowbow coding)) from a locally installed VS Code via ssh. It install VS Code server on a remote machine and connects to it. So you do not need to have anything but VS Code locally.
There is similar thing in PhpStorm I know nothing more about)
-
1
-
-
In case you really need to build tailwindcss without node and running npm install for whatever reason you can use this https://tailwindcss.com/blog/standalone-cli.
Just download a binary, put it somewhere and call with proper arguments. To make it easy in VS Code create a task.
-
1
-
-
Thanks for a great explanation (as always). I guessed almost everything) I also place the source scss/js in templates/static. Before that I used to put the sources in site/static-src and put the generated files in templates/static. I guess, resources could be a better name for the sources. At least it is a standard place to have them as I use Wireframe (and love it).
-
1
-
Handle Wire404Exception thrown from ready.php
in API & Templates
Posted
Good day everybody!
I am trying to use wire404() in ready.php. The function throws an exception, but it is not caught with PW the standard way. The 404 page is not displayed but an error page is displayed instead. I guess that the hook to catch the exception is defined later in the request handling lifecycle.
Thanks in advance!
P.S. The 4th of April was not so long ago so this might relate)))