1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-31 10:21:44 +02:00

2594 Commits

Author SHA1 Message Date
Ryan Cramer
84d7ea797e Add some runtime request matching methods (requestUrl, requestPath, requestMethod) to Config that can be used in /site/config.php, prior to $input being available. 2021-03-26 09:00:04 -04:00
Ryan Cramer
c84bf5bd46 Fix issue processwire/processwire-issues#1325 2021-03-23 07:19:53 -04:00
Ryan Cramer
a475430031 Fix issue processwire/processwire-issues#1292 2021-03-19 15:14:25 -04:00
Ryan Cramer
0dc408a8dd Fix issue processwire/processwire-issues#1311 2021-03-19 14:31:07 -04:00
Ryan Cramer
cd533062d7 Fix issue processwire/processwire-issues#1319 2021-03-19 14:10:45 -04:00
Ryan Cramer
a9b8d37c58 Update FieldtypePage.getMatchQuery to inherit "include=" and "check_access=0" settings from PageFinder that called upon it. Update PageFinder to support this kind of communication with Fieldtypes. 2021-03-19 14:05:42 -04:00
Ryan Cramer
d0b404b752 Fix issue processwire/processwire-issues#1326 2021-03-19 11:40:07 -04:00
Ryan Cramer
3146b5c6c8 Fix issue processwire/processwire-issues#1332 2021-03-19 10:55:39 -04:00
Ryan Cramer
60cc947770 Fix issue processwire/processwire-issues#1334 2021-03-19 10:47:16 -04:00
Ryan Cramer
de63b1d079 Upgrade CKEditor version to 4.16.0 2021-03-19 10:33:01 -04:00
Ryan Cramer
964c95474f Fix issue processwire/processwire-issues#1342 2021-03-19 09:42:13 -04:00
Ryan Cramer
be10a6ce7e Fix issue processwire/processwire-issues#1352 2021-03-19 09:28:34 -04:00
Ryan Cramer
2bb6179475 Fix issue processwire/processwire-issues#1350 2021-03-19 09:22:46 -04:00
Ryan Cramer
c77f2f0d63 Bump version to 3.0.174 2021-03-12 15:28:25 -05:00
Ryan Cramer
6fd72fc804 Optimizations to path hooks pre-filtering in WireHooks class. 2021-03-12 09:28:28 -05:00
Ryan Cramer
a24d09b8d0 Updated $pages->findRaw() to have new 'objects' and 'entities' options. The objects option makes it return StdClass objects to represent pages and other data rather than associative arrays (requested by @adrianbj). The entities option makes it entity-encode string values in case you are using findRaw() values for HTML output purposes. 2021-03-11 13:10:45 -05:00
Ryan Cramer
7cb11850e8 Add new Selectors::selectorHasField() selector helper optimization method 2021-03-11 11:48:43 -05:00
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