1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 11:44:42 +02:00

2927 Commits

Author SHA1 Message Date
Ryan Cramer
4b38a649bf Fix issue processwire/processwire-issues#1517 2022-03-04 10:05:41 -05:00
Ryan Cramer
9912951d2b Fix issue processwire/processwire-issues#1534 2022-03-04 10:00:56 -05:00
Ryan Cramer
f504e9b53d Attempt fix for issue processwire/processwire-issues#1538 2022-03-04 09:41:32 -05:00
Ryan Cramer
b7806022af Fix issue processwire/processwire-issues#1527 2022-03-04 09:10:19 -05:00
Ryan Cramer
439703abdf Attempt fix for issue processwire/processwire-issues#1536 2022-03-04 08:28:33 -05:00
Ryan Cramer
fec9432a03 Add new $sanitizer->words() method and rewrite existing $sanitizer->word() method 2022-03-03 11:17:10 -05:00
Ryan Cramer
7241de5145 Bump version to 3.0.195 2022-02-25 16:42:20 -05:00
Ryan Cramer
ffc95a04a8 Make ProcessLanguage::processCSV() method hookable per request 2022-02-25 14:17:15 -05:00
Ryan Cramer
9a8942ae9d Update site-blank profile to have a /site/classes/ placeholder directory along with HomePage.php file as example/placeholder to ensure directory exists. 2022-02-25 14:15:22 -05:00
Ryan Cramer
415ea172c8 Fix issue processwire/processwire-issues#1530 2022-02-25 12:06:17 -05:00
Ryan Cramer
3c139fec06 Fix issue processwire/processwire-issues#1531 PHP-8 deprecation warnings 2022-02-25 12:02:51 -05:00
Ryan Cramer
7796807d19 Fix issue processwire/processwire-issues#1532 2022-02-25 11:46:35 -05:00
Ryan Cramer
7d91b43bba Update WireCache to avoid loading unnecessary templates plus a minor fix 2022-02-25 11:45:35 -05:00
Ryan Cramer
c01c44186e Update Field getFieldgroups() and getTemplates() methods to pull from DB rather than API (to avoid loading all templates/fieldgroups) and move the code from Field class into Fields class. 2022-02-25 11:26:31 -05:00
Ryan Cramer
fab59a5f4b Fix issue processwire/processwire-issues#1533 2022-02-25 08:37:00 -05:00
Ryan Cramer
1eb156f1aa Fix issue processwire/processwire-issues#1535 2022-02-24 12:09:54 -05:00
Ryan Cramer
aa87cc5603 Bump version to 3.0.194 2022-02-11 15:24:14 -05:00
Ryan Cramer
c3dd894094 Minor updates in Process class 2022-02-11 14:31:09 -05:00
Ryan Cramer
aa4628b638 Update ProcessPageAdd so that it doesn't have to trigger loading of all templates/fieldgroups/fields on every instance and instead only once per session or whenever a change is made in ProcessTemplate 2022-02-11 11:57:51 -05:00
Ryan Cramer
4258870aaa Update related to processwire/processwire-issues#1526 - prevent asmSelect for marking an item "pending delete" unless the item was already selected when the page rendered 2022-02-11 09:32:07 -05:00
Ryan Cramer
e0fa2c32e3 Minor updates in WireSaveableItems and this should also fix the issue with listing all items not being alpha sorted 2022-02-10 14:03:23 -05:00
Ryan Cramer
598a3a7df5 Update WireArray::sort to sort more like PHP's sort so that null or blank string values are sorted rather than appended. Add a SORT_APPEND_NULLS flag for the previous behavior too. @Toutouwai brought this one up before but I can't seem to find where it was to reference it here. 2022-02-10 14:00:50 -05:00
Ryan Cramer
a5c70a4e7d Upgrade core to have lazy-loading option for Fields, Templates, Fieldgroups. Collaboration with @thetuningspoon for boot performance improvement on installations with large quantities of fields/templates/fieldgroups. Lazy loading option is enabled by default but can be disabled by setting $config->useLazyLoading=false; in your /site/config.php file.
Co-authored-by: thetuningspoon <mspooner@hey.com>
2022-02-04 14:51:11 -05:00
Ryan Cramer
9a1cf64e02 Add a Page::render timer that is used in debug mode and shown in the Debug > Timers accordion item 2022-02-04 14:25:43 -05:00
Ryan Cramer
4c96ff94e2 Update ProcessPageEdit so that the template selection input (settings tab) is Ajax-loaded, like the parent selection input 2022-02-04 14:25:03 -05:00
Ryan Cramer
54d820e622 Update ProcessPageLister to identify when columns are not sortable 2022-02-04 14:23:20 -05:00
Ryan Cramer
ebb4663b84 Add a Template::setRaw() method, phpdoc fix in Paths class and update the $trackChanges property in Wire base class to be protected rather than private (as an optimization) 2022-02-04 14:20:27 -05:00
Ryan Cramer
36f051e129 Add $sanitizer->entitiesA() and $sanitizer->entitiesA1() methods for entity encoding values in arrays 2022-01-28 13:15:04 -05:00
Ryan Cramer
218946a8b5 Fix issue processwire/processwire-issues#1487 2022-01-28 12:07:32 -05:00
Ryan Cramer
11b0358290 Fix issue processwire/processwire-issues#1498 2022-01-28 11:43:32 -05:00
Ryan Cramer
400399ce60 Fix issue processwire/processwire-issues#1435 2022-01-25 11:08:15 -05:00
Ryan Cramer
25da592578 Additional updates for processwire/processwire-issues#1467 2022-01-24 11:07:10 -05:00
Ryan Cramer
beaad6e8dd Fix issue processwire/processwire-issues#1509 2022-01-24 10:36:43 -05:00
Ryan Cramer
d30f584190 Fix issue processwire/processwire-issues#1511 2022-01-24 10:33:41 -05:00
Ryan Cramer
22315d3cb5 Fix issue processwire/processwire-issues#1510 2022-01-24 08:45:14 -05:00
Ryan Cramer
7f56c817e0 InputfieldCKEditor updates to fix and improve support of CKE contextual settings in Repeater/RepeaterMatrix types 2022-01-23 10:36:48 -05:00
Ryan Cramer
76e7855e83 Remove phpdoc for non-existing hook method 2022-01-21 16:46:56 -05:00
Ryan Cramer
bccd8aad5f Bump version to 3.0.193 2022-01-21 16:46:28 -05:00
Ryan Cramer
5e11b28587 Fix issue processwire/processwire-issues#1507 2022-01-21 13:23:10 -05:00
Ryan Cramer
39f9cf42f2 Add the following new hooks to $templates, $fields and $fieldgroups: renameReady($item, $oldName, $newName); renamed($item, $oldName, $newName); Added the following new hooks to $fieldgroups: fieldAdded($fieldgroup, $field); fieldRemoved($fieldgroup, $field); Make template selectable for Page fields in InputfieldSelector, plus other minor updates. 2022-01-21 12:21:05 -05:00
Ryan Cramer
a7a4055632 Update ProcessModule to have a raw/JSON module configuration data editor and a raw/JSON info viewer. These options are available in $config->advanced=true; mode in the "Module Information" table that appears when viewing/editing a module in ProcessModule. 2022-01-21 10:19:58 -05:00
Ryan Cramer
43c27b103a Fix issue processwire/processwire-issues#1506 2022-01-20 12:03:28 -05:00
Ryan Cramer
2818aecb96 Fix issue processwire/processwire-issues#1505 2022-01-17 08:39:43 -05:00
Ryan Cramer
48f3db2b0c Fix issue where findRaw could get error when returning referencs where none existed 2022-01-16 12:43:04 -05:00
Ryan Cramer
883b0ab438 Code improvements and some refactoring of ProcessTemplate module 2022-01-14 13:45:14 -05:00
Ryan Cramer
842ea3df79 Improvements to WireHttp::send() method and update to use CURL first when available (rather than fopen) 2022-01-14 13:43:56 -05:00
Ryan Cramer
3a9416b8f2 Improvements to $pages->findRaw() based on requests. Added support getting "parent.field" and "parent.parent.field", etc. Added support for "references" and "references.field", etc. which returns matches from pages referencing the found pages via page reference fields (optionally include 'references.field' in requested fields list to index references by field name). Added support for FieldtypeOptions fields so that they can now return label, value, id or any of them by adding "your_options_field.label" (for example) in your requested $fields. Added new "flat" option which makes it returned flattened arrays for each page match... when used results are indexed in the same way they are requested, for example a result like [ 'page_field' => [ 'title' => 'Some title' ]] becomes [ 'page_field.title' => 'Some title' ]. Added support for requesting field 'meta' and 'meta.name' which returns Page meta data that you would usually access from $page->meta('name'). A few of these requests came from processwire/processwire-requests#427 2022-01-14 13:34:26 -05:00
Ryan Cramer
fcdaf277ce Additional updates for processwire/processwire-issues#1502 2022-01-12 10:24:08 -05:00
Ryan Cramer
1729e71808 Additional updates for processwire/processwire-issues#1502 2022-01-11 14:57:05 -05:00
Ryan Cramer
6c29350918 Additional updates, additions and fixes to $sanitizer->float(), InputfieldFloat and FieldtypeFloat per processwire/processwire-issues#1502 2022-01-11 09:51:52 -05:00