-
Posts
6,671 -
Joined
-
Last visited
-
Days Won
366
Everything posted by bernhard
-
Hide uneditable Pages in Admin Tree/ProcessPageList
bernhard replied to Orkun's topic in General Support
?? At first I thought my version was better readable. But I quite like this one: $this->addHookAfter('ProcessPageList::find', function (HookEvent $event) { $event->return->find([ "template!=" => ['admin', 'basic-page'], // keep them ])->each(function($p) use ($event) { if(!$p->editable() AND !$p->addable()) $event->return->remove($p); }); }); -
...to get rich? ...to find a woman? ...to get happier in life? ...just for fun? ? Little bit kidding here, but imho the most important question is the "why". Or the "goal" why you are showcasing that. Did you see last weeks showcase of https://siebennull.com/ ? It can be as simple as that: That's what marketing people call "call to action". I didn't see one on your site Just checked back and found it: Has it been there before? If the main goal of your website is getting possible new clients I'd say that a small single line with your e-mail is maybe not the best option ? If you don't want to get spammed by client requests because it's a just-for-fun-showcase website, then that would be fine - it's all about the main goal ?
-
Nice, thx for sharing and welcome back to ProcessWire ? I like the design and I think it gives a good impression of who you are. I also had not the best experience with the navigation. First try was to scroll down but nothing happened, only the menu disappeared. Scrolling several times more finally showed the next section. What could be missing (if that's not intentional) is a statement what you are looking for. Are you available for hire? Or do you just want to share your projects? I don't get that from the website ?
-
Bug report - Get $user->language in hook Pages::saveReady
bernhard replied to DV-JF's topic in Multi-Language Support
Thx @DV-JF I've gone ahead and created an issue: https://github.com/processwire/processwire-issues/issues/1020 -
Access user Language in init() / before ready()
bernhard replied to Noel Boss's topic in API & Templates
@Noel Boss did you find a solution? This thread is related: -
Hi @Ralf, what exactly is the problem? The example in the readme shows how you generate the pdf. You'll get an object with properties url, path and httpUrl. Then you can use the file for whatever you want and however you want...
-
Yes, like this. But at a prominent spot. At the moment we have this in the contributing guidelines (that are only shown on the issues tab btw): There's no hint at all on the PR tab:
-
Bug report - Get $user->language in hook Pages::saveReady
bernhard replied to DV-JF's topic in Multi-Language Support
Just tested and I can confirm that behaviour: // ready.php bd($this->user->language, 'ready.php'); $wire->addHookAfter("Pages::saveReady", function() { bd($this->user->language, 'saveReady'); }); I have no explanation. Anyone? -
I get your point @horst and what you describe is perfectly fine, but IMHO it wouldn't be a sad truth if it was communicated that way... --> "not-sad-truth" ? --> invest time for PRs --> PRs are ignored --> sad truth ? There are really small PRs that could be easily implemented within no time (eg https://github.com/processwire/processwire/pull/138/commits ). I understand, that checking all PRs can cost a lot of time, but that could be done by someone else just like @netcarver does it for the issues repo. Someone could tag simple fixes and ryan could then just work through PRs having some kind of label.
-
The sad truth is that ryan seems to ignore them ? I've mentioned that several times but all of my questions where handled like pull requests: ignored. Maybe @netcarver can tell us something more about that topic, as he is taking care about the pw-issues repo. Thx for that btw! ? Ryan has already pulled in some PRs - it just takes a little time sometimes but he has stated that he is happy to get contributions!
-
That's not only for PW development but if you've never tried the remote development feature of vscode you should definitely check it out! I'm using it for all SSH related stuff now (server administration) and it's been an awesome experience so far. Compared to the console you get a lot of benefits: open any file directly in vscode for editing ( "code foo.txt" will open foo.txt in vscode ) upload files via drag&drop, download via right click add different folders to your workspace (eg you can attach /var/www/vhosts and /etc/apache2) use ctrl+p to quickly search for files use the GUI to quickly search for any text in any files/folders get a full and awesome GIT integration (+GUI) extremely easy setup, just download the extension, add a host (host + user) and it works (using ssh keys) In the left bottom corner you can see that I'm connected to a remote host. Working on it is just as if it was your local machine ? Intelephense does not work, but I develop locally anyhow and for all server administration stuff there is really everything I need.
- 246 replies
-
- 3
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I've created an issue in the requests repo: https://github.com/processwire/processwire-requests/issues/339
-
Hey @kixe after upgrading from 116 to 119 I get this error: My workaround was uninstalling and installing it again and that worked.
-
Really great, thank you @Robin S! Shouldn't the field work like this by default? Or is there any drawback with your approach?
-
-
How to handle multi-user multi-task scenario?
bernhard replied to Kiwi Chris's topic in General Support
Not sure when/if full documentation will be coming... Best is to learn by examples: https://github.com/BernhardBaumrock/tabulator.test Yeah, it only supports lowercase fields. I can remember I had issues with uppercase letters from time to time, so I'm using 100% lowercase fieldnames since then. Maybe you want to file a detailed reproducable issue on github what is not working and how it should work? Maybe I find time some day to check it. Otherwise just use lowercase names for fields ? -
How to handle multi-user multi-task scenario?
bernhard replied to Kiwi Chris's topic in General Support
$grid must be a RockTabulatorGrid object, not RockFinder2. It seems that your code is wrong. Thx, I've pushed a fix for this ? -
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
bernhard replied to David Karich's topic in Modules/Plugins
ProCache does that and is worth every cent: https://processwire.com/store/pro-cache/#procache-css-and-js-minification-and-merge https://modules.processwire.com/modules/pro-cache/ -
Yes. That were 2 different questions, the more interesting being WHY you want to use AJAX for site navigation ?
-
Could you please tell us WHY you are using this AJAX technique? ? Do you know https://barba.js.org/index.html ?
-
@Lmwt have you finished the hello worlds tutorial yet?
- 5 replies
-
- dropdown
- dropdown selection
-
(and 1 more)
Tagged with:
-
Maybe you think they are NULL but they actually are not ? How do you check the values? I recommend using TracyDebugger and doing bd($input->get('yourvar')) to check properly.
-
Just paste the content of your _main.php file and your ##yourtemplatename##.php file and we can show you what to do ?