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

1598 Commits

Author SHA1 Message Date
Ryan Cramer
da43be7d12 Fix issue processwire/processwire-issues#1491 2021-12-30 09:58:40 -05:00
Ryan Cramer
3c983f9b51 Fix issue where adding a new page was broken by commit b47297fd4a 2021-12-28 09:03:59 -05:00
Ryan Cramer
18ae00f485 Bump version to 3.0.191 2021-12-24 11:41:08 -05:00
Ryan Cramer
4344df336b Fix issue processwire/processwire-issues#1490 2021-12-24 10:49:22 -05:00
Ryan Cramer
b47297fd4a Small updates/corrections to $pages->newPage(); plus add property equivalents for several $pages API methods 2021-12-24 10:48:15 -05:00
Ryan Cramer
b78741a564 Fix issue processwire/processwire-issues#1483 2021-12-10 10:54:25 -05:00
Ryan Cramer
f4592435aa Add a $pages->new() API method which is similar to $pages->add() in that it creates a new page in the DB, except that the new() method accepts a selector string (or array) rather than the specific arugments if the add() method The new() method can also figure out the appropriate template or parent on its own (if available in family settings). This commit also updates the existing $pages->newPage() method (which creates a new page in memory only) to also accept the same selector string/array as the new() method. These updates are thoroughly phpdoc'd with the methods. 2021-12-10 10:39:26 -05:00
Ryan Cramer
48c9b54c5b Bump version to 3.0.190 2021-12-03 15:15:31 -05:00
Ryan Cramer
b49a44e813 Add 'trim' option to $sanitizer->array() method which trims string values in an array of leading/trailing whitespace. Default value for this option is true. 2021-12-03 10:48:12 -05:00
Ryan Cramer
025e75116b Add $pages->raw()->col() and $pages->raw()->cols() methods for when needing to retrieve a native pages table column by id quickly. This is intended for internal core use, though maybe occasionally useful for others. 2021-12-03 10:45:20 -05:00
Ryan Cramer
46215bdfc2 Add database selector PageFinder support for id.sort=3|2|1 which is the same as id=3|2|1 except that it also forces it to load the pages in the order given, unless overridden by a different sort= in the selector. This is related to the request in processwire/processwire-issues#1477 2021-11-30 13:57:05 -05:00
Ryan Cramer
73422a9649 Fix issue processwire/processwire-issues#1471 2021-11-30 10:10:08 -05:00
Ryan Cramer
86498bdc54 Correction to previous commit 2021-11-19 14:26:00 -05:00
Ryan Cramer
8e1608ac6f Fix issue processwire/processwire-issues#1467 2021-11-19 11:43:49 -05:00
Ryan Cramer
b8172c6605 Fix issue processwire/processwire-issues#1461 using fix suggested by @Radon8472 2021-11-19 10:44:47 -05:00
Ryan Cramer
43347472f3 Update the $pages->add() method to pull a fresh copy of the $page from the database after it has been added. This helps with some API usages where returned $page may have not been fully initialized in some cases. 2021-11-19 10:24:54 -05:00
Ryan Cramer
c758c070c1 Bump version to 3.0.189 2021-11-05 16:42:04 -04:00
Ryan Cramer
031ff59852 Add a PagesEditor::clear() method for clearing a page's data, plus add a PagesEditor::replace() method for replacing one page with another, but it is currently a work in progress (not yet in public API) 2021-11-05 13:34:17 -04:00
Ryan Cramer
495d2e1b5d Update Fieldtype base class to expend methods for emptying a page field's table vs. deleting it 2021-11-05 13:20:42 -04:00
Ryan Cramer
e56ee2e7bf Bump version to 3.0.188 2021-10-29 14:58:38 -04:00
Ryan Cramer
234487be6c Bump version to 3.0.187 2021-10-22 15:24:35 -04:00
Ryan Cramer
bbb7ea3857 Fix issue in PagesPathFinder with required vs. disallowed trailing slash setting for root level pages 2021-10-22 15:21:50 -04:00
Ryan Cramer
a4555e1271 Fix issue where LanguageSupportPageNames::pageNotAvailableInLanguage wasn't working properly when redirect options selected 2021-10-18 08:16:26 -04:00
Ryan Cramer
c9fef983bc Bump version to 3.0.186 2021-10-15 15:29:11 -04:00
Ryan Cramer
6315a3db60 Additional updates, improvements, optimizations to PagesPathFinder 2021-10-13 13:33:57 -04:00
Ryan Cramer
511a068b69 Add support for the initValue property to InputfieldTextarea. Previously it was present as an option but didn't work. 2021-10-08 15:54:58 -04:00
Ryan Cramer
aa4fbd4dd9 Continued updates to PagesRequest, PagesPathFinder, LanguageSupportPageNames, ProcessPageView and related modules 2021-10-08 15:52:07 -04:00
Ryan Cramer
3cf1ba5cab Various updates primarily aimed at simplifying the check for presence of LanguageSupportPageNames module 2021-10-04 11:13:25 -04:00
Ryan Cramer
59c8880dc1 Add new $pages->getInfoByPath() method which is a shortcut to the new $pages->pathFinder()->get($path) method. Also add a new $pages->getOneById() method which is a shortcut to the $pages->getById() method with the 'getOne' option assumed (so it returns a Page rather than a PageArray). 2021-10-01 13:41:56 -04:00
Ryan Cramer
8994317163 Add a new $pages->loader()->findByName() method plus performance improvements to the $pages->findByPath() method 2021-10-01 13:32:47 -04:00
Ryan Cramer
45bffa6f72 Add new Template::isValidUrlSegmentStr($value) method that validates if given URL segment string $value matches the rules defined for that template. 2021-10-01 13:25:11 -04:00
Ryan Cramer
27e2c226f3 Add $user->setLanguage() method for quietly setting a user language at runtime 2021-10-01 13:23:11 -04:00
Ryan Cramer
fc1b252d04 Add $input->setUrlSegments() convenience method to WireInput 2021-10-01 13:19:38 -04:00
Ryan Cramer
62a64de93b Add PagesRequest class to core 2021-10-01 13:18:47 -04:00
Ryan Cramer
c02a9d6f4d Add PagesPathFinder class to core 2021-10-01 13:17:44 -04:00
Ryan Cramer
8cb157abbb Bump version to 3.0.185 2021-09-17 15:50:07 -04:00
Ryan Cramer
75db68ef06 Several additions to $database API var: Add option to $database->getColumns() method to get the column type as used in a CREATE TABLE statement. Add $database->renameColumns() and $database->renameColumn() methods that enable you to rename columns without having to know the column type (something that MySQL versions prior to 8.x require). Add a $getNumberOnly argument to $database->getVersion() method to return the version number without vendor suffix. Add a $database->getServerType() method that returns the MySQL server type: MariaDB, MySQL, Percona, etc. 2021-09-17 15:49:15 -04:00
Ryan Cramer
f5c3fada32 Minor code updates in $modules plus a small documentation update for WireMail 2021-09-17 15:44:17 -04:00
Ryan Cramer
ba14fbde0a Fix issue processwire/processwire-issues#1436 where $pages->findJoin() used on file/image fields was resulting in them being blank in returned pages 2021-09-17 08:14:54 -04:00
Ryan Cramer
976ca7ab25 Fix issue processwire/processwire-issues#1438 2021-09-13 14:34:33 -04:00
Ryan Cramer
429e43506c Refactoring in PageFinder to support new features such as OR values for status (i.e. "status=hidden|unpublished"), updating limit to support both start and limit in one (i.e. "limit=5|10" is shorthand for "start=5, limit=10"), updating sort to support multi-value (i.e. "sort=date|title" is shorthand for "sort=date, sort=title"), plus other related minor improvements. 2021-09-10 11:05:18 -04:00
Ryan Cramer
70ff49dfc4 Update WireDatabasePDO::pdoType() to fix issue in reader/writer detection when query had leading whitespace or newlines in unexpected locations 2021-09-10 08:57:09 -04:00
Ryan Cramer
d78276e2c2 Fix small typo in phpdoc fix per @matjazpotocnik 2021-08-27 13:48:48 -04:00
Ryan Cramer
0632599385 Bump version to 3.0.184 2021-08-27 07:00:31 -04:00
Ryan Cramer
fb32ed605b README updates and related 2021-08-27 07:00:11 -04:00
Ryan Cramer
25e89c35c9 Add in-progress items that need more work or testing as to-do’s for next dev branch 2021-08-26 08:11:03 -04:00
Ryan Cramer
9ba7844a5d Fix "OR-condition not allowed" error introduced from a change related to processwire/processwire-issues#1428 2021-08-22 08:25:45 -04:00
Ryan Cramer
616c388f29 Various minor updates 2021-08-20 13:41:25 -04:00
Ryan Cramer
46a8ace31d Add exception to warn of unsupported OR condition in PageFinder per processwire/processwire-issues#1428 2021-08-20 13:19:25 -04:00
Ryan Cramer
2862114021 Fix issue processwire/processwire-issues#1116 - MarkupQA handling of abstracted URLs that also contain URL segments appended to them. 2021-08-18 11:14:31 -04:00