-
Posts
2,321 -
Joined
-
Last visited
-
Days Won
44
Everything posted by tpr
-
@matjazp Thanks, I've fixed that (came to the same solution without reading yours first :)) In v1.9.9 there is a tweak to add counters to asmSelects (for Page Reference and Options fields):
-
Sure, I was just more interested in the cause but will try the module soon ?
-
Ok, thanks! I was about to try the module but I wasn't able to get through this ?
-
The module instructions are rendered here on pw 3.0.108 as plain text instead html. Changing line 456-457 to this solves the issue (removing translate function): $f->markupText = file_get_contents(__DIR__ . '/instructions.php'); Perhaps this happens only on a multilanguage site or where SimpleMDE is not installed?
-
Display number of selected items: is there an in-built PW method for this?
tpr replied to dragan's topic in General Support
If you are not against some dirty css hack, you could do it without js using css counter added to pseudo elements on the list items, and positioning them to the top right corner of the field. As you need the last number only, hide the others using li:not(:last-child) display none. The downside is that you cannot position it directly after the label text and it's kinda hacky but otherwise it's reliable and resource friendly (css power! :)). Sorry I cannot post an example as I'm on mobile, maybe tomorrow if you are interested.- 11 replies
-
- 3
-
- inputfields
- selection
-
(and 2 more)
Tagged with:
-
Neither I have an immediate need for rewrite in pure JS but I'm sure I'll try this on a new PW project (nothing in sight btw). I can have a look at it on next week if all goes well.
-
Any progress on this? I would happily help with this, looking at the code it doesn't seem to be a hard task, perhaps only $('body').animate() part + testing.
-
Is the module using Ajax or adds the dropdowns to the markup in advance?
- 79 replies
-
- breadcrumbs
- admin
-
(and 2 more)
Tagged with:
-
Edit Children in place and new Pages as Children
tpr replied to Noel Boss's topic in API & Templates
I haven't tried it inside the admin but FEEL may fit for your needs (see my sig). It doesn't have a feature to list children though. If there's a mod needed I can add that to the module, of course a PR is welcomed. -
ProcessNetteTester Run Nette Tester tests within ProcessWire admin. (continued from here) Features AJAX interface for running Nette Tester tests, in bulk or manually display counter, error message and execution time in a table run all tests at once or launch single tests show formatted test error messages and report PHP syntax errors stop on first failed test (optional) hide passed tests (optional) display failed/total instead passed/total (optional) re-run failed tests only (optional) auto scroll (optional) include or exclude tests based on query parameters start/stop all tests with the spacebar reset one test or all tests (ctrl+click) TracyDebugger File Editor integration https://modules.processwire.com/modules/process-nette-tester/ https://github.com/rolandtoth/ProcessNetteTester
- 11 replies
-
- 14
-
- testing
- process module
-
(and 3 more)
Tagged with:
-
No, they can see their own pages only (and child pages). Perhaps it's configurable?
-
Perhaps you could consider this module: https://modules.processwire.com/modules/admin-restrict-branch/
-
The built-in WireJqueryTabs is configurable but doesn't offer the exact same thing you need. I would add an extra hidden field and save the current tab name via hook on page save, then retrieve this value somehow on page load, with a hook or js, and set the tab accordingly.
-
Currently there's no such hotkey. I've tried it earlier without luck but surely there's a way. You can copy settings.php from one install to another. Check Save settings checkbox in the bottom of config and save the module. Then on the other site check the same checkbox and save. Then uninstall aos, put settings.php to aos dir and install.
-
I'm close to release the initial version of the module, only a few issues are left behind. I rewrite the UI so it uses ajax all the time. It was an overkill to start all test on page load, plus it was done in one PHP thread which involved a few issues (timeout, included files were inherited by next tests, etc). With ajax it's not only user-friendlier but more reliable too, and it's possible to catch PHP errors too (beforehands the syntax error was outputted on the whole page). I also managed to format the Assert error message so now it's much easier to grasp the message. I really like how it looks and works now. Even so it seems simple the JS part was tricky sometimes ?
-
I'm working on a module that makes easier to run tests, from within the admin. It's a process module and you can add pages anywhere in the admin and set each page a tests directory. So you can add new tester pages, or specify a path to an existing tests directory, see my TemplateLatteReplace module's tests in action on the screencap. Furthermore you can narrow the list of tests within a directory with URL parameters, to include only a few tests or exclude some. This may come handy if you don't want to run all the tests within a directory. Another handy feature is that you can re-run tests via ajax, that makes it easy to check whether your fixes are working (whether in "real" code or in test code).
-
Ok, thanks for your opinions. I'll leave AOS as it is, and when things start going out of control it will support only one admin theme.
-
When I mentioned earlier that I may decide to create to create a new admin theme from aos many of you liked the idea. Yesterday I tried it out and I see how easy it would be to port some features without hacks, and removing the extra code needed to support the 3 major admin themes. So if decide to rewrite that would mean a faster and leaner module that is easier to maintain, but at the cost of dropping support for the default and reno themes. Plus as it would be forked from the uikit theme, I would have to constantly adjust it when the original theme is updated. So what do you think about it?
-
Ok, something is with your "$page->external_link", this quick test works fine here: <?php $page = new stdClass(); $page->external_link = 'processwire.com'; ?> <a href="http://www.<?=$page->external_link?>">Visit site</a> Perhaps $page is not the page you would like to use? What type of field is "external_link"?
-
Use either <?= or <?php echo instead "<?"
-
Could we know which one is that?
-
Show him vulnerability reports and then ask him to speak out loud "My business website runs on WordPress". If he still doesn't get it, run ?