1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-27 00:25:05 +02:00

2927 Commits

Author SHA1 Message Date
Ryan Cramer
34cc4e9b0f Add support for retaining abandoned translations in __('text') calls. This enables you to change the value in __('text') _x('text', 'context'), $this->_('text'), etc. calls without abandoning the existing translation. To use, specify bracket PHP array syntax with 2 or more phrases you'll accept translations for, rather than automatically abandoning them. This is useful in cases where you need to change the text, but do not want to automatically lose any existing translations. For example, the call: __(['new text', 'old text']); will use a translation for 'old text' if 'new text' has not yet been translated. In the admin translation tools, it identifies these as "fallback" translations. See phpdoc notes in __() function for more details. 2020-02-14 15:36:40 -05:00
Ryan Cramer
af6a68e06d Update ProcessLogin to support login by email address for the admin. To use, you must enable the "unique" flag on your "email" field (Setup > Fields > email > Advanced), and then you can enable login-by-email in the ProcessLogin module settings. 2020-02-14 15:15:28 -05:00
Ryan Cramer
eedad3a742 Remove some redundant code from ProcessField and fix an issue with a duplicate id attribute in markup. 2020-02-14 14:50:43 -05:00
Ryan Cramer
d154a8de28 Minor fixes in WireArray, PaginatedArray and CommentStars classes 2020-02-14 14:49:59 -05:00
Ryan Cramer
93f422a2cf Update inputfields.js so that you can specify #find-fieldName as a URL fragment on pages containing an InputfieldForm and it will locate and highlight the field identified by fieldName. Also update $page->editUrl() function to accept a field name to find in the page editor, which uses the inputfields.js #find-fieldName added in this commit, i.e. $page->editUrl('body'); 2020-02-14 14:45:50 -05:00
Ryan Cramer
0e045ad45d Add new $field->editUrl() method 2020-02-14 14:43:55 -05:00
Ryan Cramer
032df04fe1 Bump version to 3.0.150 2020-02-07 13:42:02 -05:00
Ryan Cramer
df33867a44 Fix issue processwire/processwire-issues#1083 2020-02-07 13:12:38 -05:00
Ryan Cramer
d528f2f133 Update FieldtypeEmail and InputfieldEmail to support MySQL UNIQUE index option (available as a toggle on Advanced tab when editing field in admin) 2020-01-31 11:28:53 -05:00
Ryan Cramer
687ea08633 Add new FieldsTableTools class as a helper for managing field tables and their indexes. Intended for non-public API (internal core) use, but methods can be accessed $fields->tableTools() 2020-01-31 11:25:08 -05:00
Ryan Cramer
e983442197 Update ProcessPageLister for improved column labels when subfields are in use 2020-01-31 11:23:22 -05:00
Ryan Cramer
3d2648ef01 Update ProcessPageEdit so that it detects when the same error message might get shown twice and prevents it from happening 2020-01-31 11:21:08 -05:00
Ryan Cramer
92ef3bbbc3 Update RepeaterPage class for secondary detection of 'forField' when page exists in unexpected location 2020-01-31 11:19:55 -05:00
Ryan Cramer
1c3ba1024f Update WireException class to support setting message and code 2020-01-31 11:15:47 -05:00
Ryan Cramer
57a3a99ebd phpdoc-specific adjustments to FieldtypeCache.module 2020-01-29 06:01:46 -05:00
Ryan Cramer
b7dfe9da1e Add Fieldtype::isDeleteValue() method to isolate that particular logic outside of savePageField() method so it can more easily be overridden 2020-01-29 06:00:00 -05:00
Ryan Cramer
2adf4b0707 Updates to $config->fileContentTypes 2020-01-29 05:58:59 -05:00
Ryan Cramer
20be0c7fd5 Improvements to PageComparison is() and if() methods, minor optimization in WireData, and minor phpdoc fix in WireCache 2020-01-24 10:47:07 -05:00
Ryan Cramer
c5417d98ad Fix issue processwire/processwire-issues#1071 plus some other improvements to FieldtypeModule 2020-01-24 10:03:16 -05:00
Ryan Cramer
045f69d96d Add wireClassNamespace() function to accopmany existing wireClassName() function and others. Also improve wireEmpty() function to recognize objects that can be cast to empty strings. 2020-01-24 10:01:32 -05:00
Ryan Cramer
57540cfab2 Fix issue processwire/processwire-issues#1064 2020-01-20 08:37:12 -05:00
Ryan Cramer
6bc706742e Fix issue processwire/processwire-issues#1065 2020-01-20 07:19:10 -05:00
Ryan Cramer
85c9e4f329 Fix issue processwire/processwire-issues#1067 2020-01-20 07:01:01 -05:00
Ryan Cramer
406bd7a2ea Fix issue processwire/processwire-issues#1066 2020-01-18 06:36:35 -05:00
Ryan Cramer
e2ace10dbc Bump version to 3.0.149 dev 2020-01-17 15:37:48 -05:00
Ryan Cramer
d68b8267b1 Various improvements to ProcessWire's $notices API var (Notices and Notice classes) 2020-01-17 11:35:01 -05:00
Ryan Cramer
51c1096c7b Several upgrades to ProcessCommentsManager. Lots of improvements here, but biggest functional additions are the ability to change the Page that any comment lives on, as well as the ability to change what comment another is replying to. 2020-01-17 11:30:12 -05:00
Ryan Cramer
bd7dd56f06 Various upgrades to the API of comments fields 2020-01-17 11:29:31 -05:00
Ryan Cramer
6b04c4e15a Update AdminThemeUikit search box to add a suggestion about typing "help" if you focus the input for a brief period without typing anything 2020-01-17 11:27:28 -05:00
Ryan Cramer
f5f83e8148 Fix issue processwire/processwire-issues#1062 2020-01-13 14:49:28 -05:00
Ryan Cramer
a4f036cb45 Fix issue processwire/processwire-issues#1060 2020-01-13 14:41:15 -05:00
Ryan Cramer
11ed423bca Fix issue processwire/processwire-issues#1061 2020-01-13 14:24:44 -05:00
Ryan Cramer
abc32780e3 Update ProcessForgotPassword to have a dedicated hookable renderForm() method for simpler hook modifications 2020-01-13 08:50:45 -05:00
Ryan Cramer
b8dcdb7758 Fix issue in User::editUrl() where it wasn't passing $options array to parent call 2020-01-13 08:49:30 -05:00
Ryan Cramer
0a1ec95a33 Update wireEmpty() function so that it also returns false when giving a NullPage or NullField object. Add WireNull interface for future Null objects. 2020-01-13 08:48:06 -05:00
Ryan Cramer
321ea0eed3 Update InputfieldPassword to support configurable placeholder attributes for old/new/confirm inputs via oldPassLabel, newPassLabel, confirmLabel properties that can be set from hooks. 2020-01-05 07:31:11 -05:00
Ryan Cramer
51629cdd5f Bump version to 3.0.148 3.0.148 2020-01-02 12:06:16 -05:00
Ryan Cramer
0f0d20c76b README file updates for new master version 2020-01-02 11:50:54 -05:00
Ryan Cramer
49df4445e2 Suppress missing root .htaccess file error in SystemUpdateChecks since the checks wouldn't even be able to run if an .htaccess or suitable replacement file wasn't already present. Fixes processwire/processwire-issues#1059 2020-01-02 06:02:49 -05:00
Ryan Cramer
6b177d0d0d Add InputfieldImage CSS fixes per processwire/processwire-issues#1048 2019-12-31 14:31:02 -05:00
Ryan Cramer
22808c316f Add a few to-do code snippets, comments and notes for 3.0.150+ (next dev branch after master merge) 2019-12-31 14:22:33 -05:00
Ryan Cramer
a0ddedc005 Update SessionHandlerDB to support utf8mb4 charset for its table when $config->dbCharset specifies it. 2019-12-31 14:05:15 -05:00
Ryan Cramer
e7c9a1b79f Fix issue where wrong directory separator slash could end up in language translation files 2019-12-27 15:57:12 -05:00
Ryan Cramer
7d4ef4b786 Add WireLog::disable() and WireLog::enable() functions to temporary disable (and later enable) a log during runtime 2019-12-27 15:55:08 -05:00
Ryan Cramer
deb2065465 Add support for a 'type' option in wireBytesStr() function, enabling you to force return value in bytes, mb, kb, gb rather than auto-detected. 2019-12-27 15:52:06 -05:00
Ryan Cramer
12dbe3f250 Fix issue processwire/processwire-issues#1056 2019-12-27 13:39:31 -05:00
Ryan Cramer
4bcb824e9b Fix issue processwire/processwire-issues#1057 2019-12-27 13:35:00 -05:00
Ryan Cramer
9a9bdb464a Minor tweaks in WireHooks, ProcessForgotPassword and SessionLoginThrottle 2019-12-20 15:06:57 -05:00
Ryan Cramer
a11403b913 Fix issue processwire/processwire-issues#1047 2019-12-20 12:31:06 -05:00
Ryan Cramer
6bae4780f0 Add suggestion from processwire/processwire-issues#1050 2019-12-20 11:59:59 -05:00