1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 06:44:38 +02:00

2927 Commits

Author SHA1 Message Date
Ryan Cramer
6b153794c8 Upgrade path hooks with 1) pagination support; and 2) the ability to handle requests triggered by 404s thrown from template files. To support pagination, just append "{pageNum}" to your URL to match and it will take care of setting the $input->pageNum() and calling your hook. Example: $wire->addHook('/foo/bar/{pageNum}', function($event) { ... }); To handle requests triggered by 404s a template file, you don't need to do anything extra, as it will take care of calling your path hook(s) automatically should the requested page URL match the one added by your hook. 2021-03-11 11:43:27 -05:00
Ryan Cramer
6146ba4eb1 Remove ProcessPageEdit CSS rules that no longer appear to be applicable 2021-03-09 11:39:08 -05:00
Ryan Cramer
30dac48646 Add support for getting 'url' and/or 'path' via $pages->findRaw(). Requires that the core PagePaths module is installed. 2021-03-08 12:43:41 -05:00
Ryan Cramer
c0ffd35b7d Update the new path hooks to support $wire->addHook('/foo/{bar}/baz', ...) where {bar} would match any segment and populate it to a $bar variable on the HookEvent. Plus add enforced trailing slash vs. non-trailing slash with redirect, depending on whether your match pattern uses a trailing slash. 2021-03-08 10:10:26 -05:00
Ryan Cramer
cb9030a6ff Add support for matching empty/not-empty to DatabaseQuerySelectFulltext match features 2021-03-07 11:10:48 -05:00
Ryan Cramer
5a0a5f24cf Bump version to 3.0.173 2021-03-05 15:59:30 -05:00
Ryan Cramer
184b3b6255 Add path hook support to ProcessPageView module plus some general refactoring and optimization of the class 2021-03-05 15:13:15 -05:00
Ryan Cramer
652a8a58e3 Update WireHooks ($hooks API var) to support path hooks 2021-03-05 15:12:23 -05:00
Ryan Cramer
94e71209b3 Update HookEvent class to support named arguments directly from $event object 2021-03-05 15:12:06 -05:00
Ryan Cramer
8718940b5d Add support for starting/stopping debug mode DB query logging, enabling you to focus in on logging queries in between specific calls 2021-02-26 14:01:17 -05:00
Ryan Cramer
8020803b7d Fix issue where language on/off checkbox in ProcessPageAdd wasn't always mirring parent page language on/off status for initial/recommended setting 2021-02-26 14:00:08 -05:00
Ryan Cramer
49b9932ab6 Add support for filtered or paginated load of page reference fields per processwire/processwire-requests#13 ... note that paginated/filered save is not yet supported 2021-02-26 11:47:00 -05:00
Ryan Cramer
755c9c5ad8 Add processwire/processwire-requests#241 to make user info and roles available to PW's admin JS config (ProcessWire.config), plus some related improvements 2021-02-26 10:46:33 -05:00
Ryan Cramer
ba2edc94cc Update $config API to have $config->jsConfig() method for JS-exclusive config settings. Different from $config->js() in that the data is completely independent of PHP config. 2021-02-26 10:31:31 -05:00
Ryan Cramer
1244b4bd48 Update wireMail fallback from email settings with 2nd check in case 3rd party module made default blank, plus update auto-detect from email logic in ProcessForgotPassword so it can't override configured wireMail settings with config.adminEmail 2021-02-19 14:56:06 -05:00
Ryan Cramer
bfdb2a09d2 Add comprehensive documentation for $config->advanced setting per processwire/processwire-requests#148 2021-02-19 14:18:02 -05:00
Ryan Cramer
c4d301a405 Add support for "preload" modules that load before all other modules, including core modules. This is primarily intended for @adrianbj Tracy Debugger per processwire/processwire-requests#165 2021-02-19 11:24:35 -05:00
Ryan Cramer
4d04aac2a6 Remove ConfigurableModule interface from LazyCron 2021-02-19 07:52:22 -05:00
Ryan Cramer
199859b6ff Add support for specifying "field=foo|bar|baz" in selector to $pages->findRaw(), like you can with $pages->find(). This is an alternative to using the separate field argument. Also begin support for adding parent properties, but there is more work to be done there before they are supported. 2021-02-12 15:29:29 -05:00
Ryan Cramer
ae46639e35 Add feature request processwire/processwire-requests#203 support for password unmask in InputfieldPassword 2021-02-12 15:09:08 -05:00
Ryan Cramer
990041adb9 Add feature request processwire/processwire-requests#226 for additional HTML purifier configuration options 2021-02-12 11:24:11 -05:00
Ryan Cramer
c414a54531 Fix issue processwire/processwire-issues#1323 plus some other minor improvements to LazyCron 2021-02-12 10:36:22 -05:00
Ryan Cramer
861d7163f6 Add WireShutdown::fatalError() hookable method to enable hooking fatal errors 2021-02-12 10:10:58 -05:00
Ryan Cramer
4406086241 Fix issue with $page->setForced() not populating $settings array when it should (interfered with new findJoin functions) 2021-02-07 08:15:18 -05:00
Ryan Cramer
5a2c4c2014 Bump version to 3.0.172 2021-02-05 16:21:13 -05:00
Ryan Cramer
7fe8e5f1fb Add new $pages->findJoin() method and $pages->find("selector, field=title|summary"); option that lets you specify which fields to autojoin in a page finding operation. Also added is an experimental PagesLoader::findMin() method that finds and loads pages in one query rather than splitting them out into separate find() and getById() calls. For now, we just use this method to handle the findJoin() and joinFields options, but may expand its use later. This commit also contains numerous performance optimizations to the Page class, and several updates to the PageFinder class to support the new autojoin options. 2021-02-05 11:28:48 -05:00
Ryan Cramer
a697795c08 Minor documentation updates in Language and Languages classes 2021-02-05 10:37:32 -05:00
Ryan Cramer
4ea5d7a631 A couple of new convenience methods added to InputfieldWrapper 2021-02-05 10:36:03 -05:00
Ryan Cramer
80593fb643 Add new API methods: $pages->findRaw(), $pages->getRaw(), and $pages->getFresh() 2021-01-29 15:05:40 -05:00
Ryan Cramer
3de5d4d2a6 Add a getFresh() method to PagesLoader and improve cache detection for the get() method 2021-01-29 15:04:44 -05:00
Ryan Cramer
45e130202b Some updates in Modules class to improve refresh reporting 2021-01-29 15:04:03 -05:00
Ryan Cramer
dfba347f1f Update include file used by site/templates/admin.php in core site profiles 2021-01-27 14:55:02 -05:00
Ryan Cramer
2557929f08 Minor hooks optimization in Wire class 2021-01-27 14:54:08 -05:00
Ryan Cramer
201dc4155e Add InputfieldSelect.valueAddOption to facilitate dynamic option values 2021-01-27 14:52:55 -05:00
Ryan Cramer
4633798d02 Add renderOrProcessReady hook to InputfieldForm 2021-01-27 14:51:07 -05:00
Ryan Cramer
b8d3a4c207 Bump version to 3.0.171 2021-01-22 15:14:21 -05:00
Ryan Cramer
3603cdb744 Add a FieldtypeDecimal to the core per request. This is a newly written module that's different from the 3rd party FieldtypeDecimal, so consider it beta. If using the 3rd party FieldtypeDecimal, this one uses the same configuration setting names, so they are intended to be compatible. You may have to delete /site/modules/FieldtypeDecimal or rename it to /site/modules/.FieldtypeDecimal, and then Modules > Refresh, before PW will use the core one. 2021-01-22 14:19:04 -05:00
Ryan Cramer
0c0fb16e4d Fix issue processwire/processwire-issues#1299 2021-01-22 14:18:17 -05:00
Ryan Cramer
76128e4855 Update InputfieldFloat with option to better support string value decimal numbers 2021-01-22 14:15:53 -05:00
Ryan Cramer
9271e8d846 Add a getString option to the $sanitizer->float() method 2021-01-22 14:14:46 -05:00
Ryan Cramer
0bddf640db Add a new Fieldtype::savedField interface method so that Fieldtypes can monitor when a field of their type has been saved, without having to attach a hook 2021-01-22 14:12:58 -05:00
Ryan Cramer
e28d2e67e7 Add support for family-friendly depth settings in InputfieldRepeater. Can be enabled in repeater field settings (for matrix or regular repeater). This makes depth act as parent/child relationships in page editor so that dragging/sorting a parent also drags children. It also prevents more than 1 depth level increase between parent and child (i.e. converts a parent-to-grandchild relationship to parent-to-child relationship). 2021-01-19 11:39:06 -05:00
Ryan Cramer
ecb7694312 Fix issue processwire/processwire-issues#1275 2021-01-12 07:28:54 -05:00
Ryan Cramer
50dff006b5 Make ProcessLogger::formatLogText hookable (requested by @netcarver) 2021-01-12 07:03:25 -05:00
Ryan Cramer
a7d0ec1c91 Fix issue processwire/processwire-issues#919 (WireCache/JSON) 2021-01-12 07:02:42 -05:00
Ryan Cramer
3370e10802 Updates to make AdminThemeUikit easier to extend with an AdminThemeUikit descending module 2021-01-06 10:55:30 -05:00
Ryan Cramer
ea00f4b940 Bump version to 3.0.170 2021-01-01 16:29:25 -05:00
Ryan Cramer
d5d4e8049b Lots of improvements to configuration of File and Image fields (as used in ProcessField). 2021-01-01 13:59:06 -05:00
Ryan Cramer
43cfdd9dfe Add new $templates->add() and $templates->rename() API methods 2020-12-31 15:54:30 -05:00
Ryan Cramer
880ed9511d Add a Template::editUrl() method 2020-12-31 15:54:06 -05:00