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

Commit Graph

  • 92afe679b9 Fix issue processwire/processwire-issues#1936 Ryan Cramer 2024-06-20 10:58:28 -04:00
  • 061170204b Update Lister/ListerPro for improved support of subfield labels Ryan Cramer 2024-06-20 09:47:45 -04:00
  • 6d225f3c99 Update InputfieldTextTags to support page selection for pages having digit-only titles (such as "2024"). Plus add support for single-page selection mode (previously it only supported multi-page selection mode). Ryan Cramer 2024-06-20 09:41:40 -04:00
  • 38a5320f61 Bump version to 3.0.240 Ryan Cramer 2024-06-14 15:53:39 -04:00
  • abe1216c89 Minor fixes Ryan Cramer 2024-06-14 15:52:28 -04:00
  • cf0832c330 Add support for custom live search results in the admin search Ryan Cramer 2024-06-14 15:51:28 -04:00
  • 34c10a5417 Update InputfieldTinyMCE.js to support "saved" and "saveReady" JS events to ensure that TinyMCE content gets populated to original input/textarea elements. Seems to be necessary for LRP but likely to come in handy elsewhere too. Ryan Cramer 2024-06-14 10:56:34 -04:00
  • cc79223bc8 Fix issue processwire/processwire-issues#1931 Ryan Cramer 2024-06-07 12:57:33 -04:00
  • 13221c3bd5 Fix issue processwire/processwire-issues#1934 Ryan Cramer 2024-06-07 12:33:43 -04:00
  • e78ada8854 Update for subfield labels in column headings (primarily for ListerPro) Ryan Cramer 2024-06-02 12:17:02 -04:00
  • 48f85faced Optimizations to $modules loader Ryan Cramer 2024-05-31 14:35:46 -04:00
  • f6a1ea781b Improve support where fields in repeaters (or other embedded types) can have dependencies reference fields outside the repeater by using the "forpage.field_name=..." syntax in teh depedency. For instance, if you want a field in a repeater to only appear if editing a page using template ID 123 then you could use showIf dependency "forpage.template=123". Ryan Cramer 2024-05-31 14:33:16 -04:00
  • 7988319c72 Adjustment to Paths class Ryan Cramer 2024-05-31 14:32:28 -04:00
  • 7c85b089dd Update Inputfield class so that dependencies can be supported on many ajax-loaded Inputfields before they are… ajax-loaded. Ryan Cramer 2024-05-31 14:30:33 -04:00
  • 34bca47a07 Optimizations to WireArray and some descending classes Ryan Cramer 2024-05-31 14:27:23 -04:00
  • b9d8a741ee Minor optimizations to ProcessPageEdit Ryan Cramer 2024-05-31 14:24:08 -04:00
  • d50cc127cc Minor issue fix in ProcessPageLister.js Ryan Cramer 2024-05-24 14:52:31 -04:00
  • 904c227cce Optimizations and improvements to $config->demo mode. Ryan Cramer 2024-05-24 14:51:42 -04:00
  • 00ae62059b Various minor updates in ProcessProfile Ryan Cramer 2024-05-24 14:49:48 -04:00
  • 9803df9401 Update $database API to have new reset() and close() methods. The reset() method closes and resets the DB connection, while the close() method just closes it. Also updated the execute($query) method to use the reset() method to retry a failed query due to loss of connection. Ryan Cramer 2024-05-24 14:47:53 -04:00
  • 3c5205721b Add support for PHP-defined header actions for Inputfields as requested by @Toutouwai. These work the same as those defined in JS via Inputfields.addHeaderAction() except the method can now also be called from Inputfield objects in PHP. Also added support for 'link' type actions that open a link in either the current or a modal window. Ryan Cramer 2024-05-24 14:42:23 -04:00
  • 049efa7c3b Bump version to 3.0.239 Ryan Cramer 2024-05-17 13:41:53 -04:00
  • 212d2b361b Fix issue processwire/processwire-issues#1920 Ryan Cramer 2024-05-17 12:07:39 -04:00
  • 7c89b2b647 Fix issue processwire/processwire-issues#1921 Ryan Cramer 2024-05-17 12:03:16 -04:00
  • 9eb58ead01 Minor phpdoc update in Config.php Ryan Cramer 2024-05-17 11:11:43 -04:00
  • faf27c8fa1 Update TemplateFile halt() method to optionally accept string argument to output before halt of template file rendering. For instance: return $this->halt('<h1>See ya</h2>'); from a template file. Ryan Cramer 2024-05-17 11:09:57 -04:00
  • 764153732e Add new InputfieldWrapper getByField() and getByProperty() methods Ryan Cramer 2024-05-17 11:09:03 -04:00
  • 172ad1c812 Make the Page::getInputfields() method hookable Ryan Cramer 2024-05-17 11:08:33 -04:00
  • eaed402cfb Fix issue processwire/processwire-issues#1918 Ryan Cramer 2024-05-10 12:21:31 -04:00
  • 397bb0b382 Lots of updates to the Inputfield Javascript API (inputfields.js) with several new methods including icon() which can get or set the Inputfield icon, header() which returns the InputfieldHeader element, content() which returns the InputfieldContent element, and addHeaderAction() which lets you add custom icon actions to any Inputfield. Also updated the existing label() method to allow for setting the Inputfield label/header text (previously it could only get). The addHeaderAction() method is the most significant addition, so I'll write more about that in the weekly update. Ryan Cramer 2024-05-10 11:58:56 -04:00
  • d77b23adbb Add a new $page->cloneable() method that returns true if the user is allowed to clone the page. Or use $page->cloneable(true) if the user is allowed to clone the page and its children together. This moves the logic was was previously in the ProcessPageClone module into a method that can be more widely used where needed. Also updated the ProcessPageClone module to use it. Ryan Cramer 2024-05-10 11:52:41 -04:00
  • 4e2ef8f8fd Minor fix in inputfields.js where it wasn't always triggering the 'opened' event when it should Ryan Cramer 2024-05-03 13:57:13 -04:00
  • bbaa5570fb Update InputfieldFile and InputfieldImage to support file_context so that the same file/image field can appear more than once in the same editor. This was already supported with for repeaters, but now can be supported by other cases (and is used by PageEditChildren module). This also includes some minor refactoring in InputfieldFile. Ryan Cramer 2024-05-03 13:54:22 -04:00
  • dcd820064b Update InputfieldRepeater.js to support more context options beyond nested repeaters and ListerPro. Ryan Cramer 2024-05-03 13:50:28 -04:00
  • bae44f93ce Update Page::editUrl() method to support a 'vars' (array) option that contains additional query string variables that it should bundle in to returned URL Ryan Cramer 2024-05-03 13:48:32 -04:00
  • c38c204824 Update Fieldgroup::getPageInputfields() to support user-specified $container element (InputfieldWrapper) rather than creating one (as used by PageEditChildren module) Ryan Cramer 2024-05-03 13:47:50 -04:00
  • 38eadb46d8 Bump version to 3.0.238 Ryan Cramer 2024-04-19 14:44:42 -04:00
  • 4e2d798d49 Add support for custom jQuery UI datepicker settings in InputfieldDatetime per processwire/processwire-requests#523 and also makes several new options interactively configurable in the field settings (Input tab > Datepicker settings fieldset). Ryan Cramer 2024-04-19 14:37:18 -04:00
  • a37f237900 Update installer to exclude some $config settings when already supplied by site profile's config.php, so that it's not duplicating any settings when writing /site/config.php Ryan Cramer 2024-04-19 12:02:01 -04:00
  • 29ecddadeb Update the ProcessWire.alert() javascript function to support an expiration time after which the alert will automatically close. Ryan Cramer 2024-04-19 11:59:43 -04:00
  • 57b23ef9fe Add $inputfield->setLanguageValue($language, $value) and $inputfield->getLanguageValue($language) to Inputfield class when LanguageSupport is installed. This provides a nicer API for getting/setting multi-language values with Inputfields (where supported). Previously you could only get/set by dealing with "value1234" type settings where 1234 is language ID. Ryan Cramer 2024-04-19 11:57:39 -04:00
  • 3c0e9f3c43 Add a $datetime->strtodate() function which works like strtotime($str, $format) but returns a formatted date string rather than a timestamp. Also update the $datetime->strtotime() function to accept an inputFormat option which lets you specify the format the given date string is in, for cases when it may not be recognized by PHP based purely on format; and an outputFormat option which lets you specify the format it should return in rather than a timestamp (essentially delegating to the new strtodate method). Ryan Cramer 2024-04-19 11:53:44 -04:00
  • def74f7b6d Minor refactor of WireArray::__toString() method Ryan Cramer 2024-04-19 11:48:07 -04:00
  • 7a85039896 phpdoc improvement in Template.php Ryan Cramer 2024-04-19 11:47:31 -04:00
  • 432e369990 Minor adjustments in ProcessPageTrash Ryan Cramer 2024-04-19 11:46:34 -04:00
  • 9a6963a644 Add feature request processwire/processwire-requests#186 which adds the configurable option to always use the full clone form. Also updated it to show a count of how many pages would be cloned when cloning children, and added dropdown options to the submit button so that you can optionally edit a page after cloning. Added icons to all inputs as well. Ryan Cramer 2024-04-18 11:33:24 -04:00
  • 76388b48e6 Fix ProcessPageClone issue processwire/processwire-issues#1909 plus add option to choose whether children/granchidren/etc are unpublished, and make the getSuggestedNameAndTitle() method hookable Ryan Cramer 2024-04-18 10:33:13 -04:00
  • d8ae8f9177 Fix issue processwire/processwire-issues#1904 Ryan Cramer 2024-04-18 09:13:01 -04:00
  • 9e6b89cf93 Fix issue in PagePathFinder where LanguageSupportPageNames module in use without using homepage language segments, combined with multi-language PagePathHistory module, could result in default language incorrectly detected from URL. Ryan Cramer 2024-04-08 09:08:19 -04:00
  • 7438ae90ca Fix issue processwire/processwire-issues#1903 Ryan Cramer 2024-04-05 13:00:26 -04:00
  • 6aa698343b Fix issue processwire/processwire-issues#1902 plus some code for an unrelated feature I hadn't yet committed Ryan Cramer 2024-04-05 12:01:51 -04:00
  • 9eb9f88090 Update "Parent" section field in page editor to provide contextual options based on template family settings and access control, when available. This means it now gives you a <select> of allowed parents (when known by family settings) rather than a PageListSelect. This is preferable because a PageListSelect doesn't know about which parent pages are allowed until after submitting the page edit form. Ryan Cramer 2024-04-05 11:14:00 -04:00
  • 9737b4e15d Update Page::moveable method to also consider its template.parentTemplates setting so that it can return false when no potential parents exist using allowed templates. Also should fix processwire/processwire-issues#1901 Ryan Cramer 2024-04-05 09:56:50 -04:00
  • 37416f8bcc Update PageList to add new classes to items: 'PageListNotPublic' when page is not public for viewing to guest user, 'PageListNoFile' when page has no template file. Plus some other minor optimizationsin while there. Ryan Cramer 2024-04-03 10:24:48 -04:00
  • e0f67aa55e Bump version to 3.0.237 Ryan Cramer 2024-03-28 13:24:09 -04:00
  • 91c15f666a Fix issue processwire/processwire-issues#1898 Ryan Cramer 2024-03-28 10:57:16 -04:00
  • ffdd9729e4 Fix issue processwire/processwire-issues#1892 Ryan Cramer 2024-03-28 10:36:30 -04:00
  • 718c93b056 Fix issue processwire/processwire-issues#1894 Ryan Cramer 2024-03-28 10:30:36 -04:00
  • 68d9ec9b42 Fix issue processwire/processwire-issues#1895 Ryan Cramer 2024-03-28 10:23:18 -04:00
  • fb12fb7750 Fix issue processwire/processwire-issues#1896 Ryan Cramer 2024-03-28 10:03:16 -04:00
  • 6e1d7b166d Fix issue processwire/processwire-issues#1897 Ryan Cramer 2024-03-28 09:35:40 -04:00
  • 21949387b4 Various minor updates Ryan Cramer 2024-03-28 09:01:54 -04:00
  • 0852242866 Update default AdminTheme.scss to limit align left/right/center classes to img, figure, div, etc. Ryan Cramer 2024-03-28 08:59:51 -04:00
  • 4f55480fc7 Update PageValues class to call $page->getField() rather than $this->getField() since it may be overridden by descending Page object (RepeaterMatrixPage for example) Ryan Cramer 2024-03-28 08:48:21 -04:00
  • 3256cb9000 Update installer so that it works if site profile is already installed in /site/ rather than /site-name/ Ryan Cramer 2024-03-28 08:36:56 -04:00
  • 55a241e2f1 Fix issue processwire/processwire-issues#1893 Ryan Cramer 2024-03-22 14:45:24 -04:00
  • 5b257c6031 Fix issue processwire/processwire-issues#1899 Ryan Cramer 2024-03-22 14:33:45 -04:00
  • 38757b1baa Fix behavior of PageFinder when selector has multiple fields before a != operator and no values after the operator, i.e. a|b|c!= Ryan Cramer 2024-03-15 15:50:12 -04:00
  • d7502b669a New methods for LanguageTranslator class (Note for examples: $translator = $user->language->translator()) - $translator->getTranslationInfo($textdomain, $text) returns verbose array of information about the translation, where it came from, etc. $translator->getTranslationOrFalse($textdomain, $text) returns translation text if translated, or false if not (rather than default language value). $translator->findTranslations($text) searches across all translated files to find all translations for given text. $translator->findTranslation($text) searches across all translated files to find the first available translation for given text. Ryan Cramer 2024-03-15 15:41:09 -04:00
  • 5fe181c315 Update ProcessPageSearchLive to simplify id searches when using single equals sign Ryan Cramer 2024-03-01 15:57:20 -05:00
  • 4b55979624 Update ProcessModule to improve the readme URL generation Ryan Cramer 2024-03-01 15:56:31 -05:00
  • 4099035708 Update PagesVersions to force singular mode Ryan Cramer 2024-03-01 15:56:08 -05:00
  • 9770138eee Update PageFinder so that joinType ('join' or 'leftjoin') can be modified by the fieldtype when/if needed Ryan Cramer 2024-03-01 15:55:32 -05:00
  • 04041bb54a Fix issue processwire/processwire-issues#1890 Ryan Cramer 2024-03-01 09:37:50 -05:00
  • 128538fcd8 Refactor of FieldtypeToggle module getMatchQuery() method to add more potential match possibilities but also to fix processwire/processwire-issues#1887 Ryan Cramer 2024-02-29 12:01:53 -05:00
  • 76ad3ab984 Add feature request processwire/processwire-requests#519 Ryan Cramer 2024-02-23 14:17:09 -05:00
  • f893cec515 Add feature request processwire/processwire-requests#520 - ability do disable (hide) image items in a multiple image field Ryan Cramer 2024-02-23 13:20:37 -05:00
  • 837a8fd32a Add feature request processwire/processwire-requests#522 which adds the ability to delete webp variations independently of jpg/png variations, including for the main/non-resized image. Ryan Cramer 2024-02-23 10:57:03 -05:00
  • 37ef2c9070 Add pasteFilter tests in TinyMCE readme file for later reference Ryan Cramer 2024-02-23 09:36:25 -05:00
  • 9c14e27576 Minor pasteFilter update in InputfieldTinyMCE.js Ryan Cramer 2024-02-23 09:35:55 -05:00
  • d5116166d0 Phpdoc documentation updates in RepeaterPageArray.php file Ryan Cramer 2024-02-23 09:34:04 -05:00
  • 47c639617c Fix issue processwire/processwire-issues#1878 Ryan Cramer 2024-02-21 11:08:07 -05:00
  • 1f2d597f52 Fix issue processwire/processwire-issues#1886 Ryan Cramer 2024-02-21 10:09:47 -05:00
  • c6dc986f9c Fix issue in PagesPathFinder where it could return a 200 rather than 301 in some cases for multi-language URLs that were missing the leading language segment and 'verbose' mode was disabled. Ryan Cramer 2024-02-21 09:31:59 -05:00
  • b5d8a91e49 Fix issue processwire/processwire-issues#1882 Ryan Cramer 2024-02-20 11:08:58 -05:00
  • f3e614640b Fix issue processwire/processwire-issues#1881 Ryan Cramer 2024-02-20 09:31:26 -05:00
  • 3e90cb74fa Fix issue processwire/processwire-issues#1879 Ryan Cramer 2024-02-20 09:03:47 -05:00
  • 71a1e9c9d9 Bump version to 3.0.236 Ryan Cramer 2024-02-16 08:31:41 -05:00
  • a53b4e5310 Update inputfields.js dependences so that they can work with Page selection fields (PageAutocomplete, PageListSelect, etc.) when used outside of an InputfieldPage, such as in a module config, field config, etc. Related to processwire/processwire-issues#1873 Ryan Cramer 2024-02-15 12:39:16 -05:00
  • 3ab315dca4 Add an update for processwire/processwire-issues#1873 Ryan Cramer 2024-02-15 12:34:09 -05:00
  • 94653012be Add PR #255 - updates inputfields.js to add support for repeater 'forpage' selectors in showIf dependencies adrianbj 2024-02-15 10:50:19 -05:00
  • f801fef42b Add PR #279 which fixes a ParseDown extra PHP 8.2 deprecation notice erikmh 2024-02-15 10:26:00 -05:00
  • caa8e7e421 Some upgrades to Repeater and RepeaterMatrix: Added processwire/processwire-requests#474 which enables open/close for family groups of repeater items together, so that when using depths, and you open (or close) a repeater item, items that are visually children of it also open (or close). To enable, see the field "Details" tab setting in "Repeater depths/indents" > "Open/close items as a family?". Also added a configuration setting that enables you do disable the automatic scrolling to newly added items, as requested by @hiboudev Ryan Cramer 2024-02-14 12:13:54 -05:00
  • a5f6cabbcf Fix for processwire/processwire-issues#1873 Ryan Cramer 2024-02-13 11:26:02 -05:00
  • db358ee4db Add loading="lazy" option for <img> tags in Textarea fields (TinyMCE, CKEditor) that is inserted at runtime when output formatting enabled. To turn this on, edit your Textarea field and on the Details tab, see the HTML options. This was added for processwire/processwire-requests#455 Ryan Cramer 2024-02-09 14:28:59 -05:00
  • 215010386f Page::render() and PageRender::renderPage() documentation updates per processwire/processwire-requests#459 Ryan Cramer 2024-02-09 13:23:59 -05:00
  • 97db8e8783 Add hookable InputfieldPage::renderPageLabel() method for processwire/processwire-requests#460 Ryan Cramer 2024-02-09 12:09:45 -05:00
  • 9fe7e95840 Add processwire/processwire-requests#466 which fixes template order in InputfieldSelector. While there, I also updated it to correct field and option order in a couple other spots. Ryan Cramer 2024-02-09 10:40:50 -05:00
  • d2fccd84af Update to Page API for getting/setting multi-language values. Added $page->setLanguageValues() and $page->getLanguageValues() for setting and getting values from multiple languages at once. Added $page->setLanguageStatus() and $page->getLanguageStatus() for setting/getting the active status of a language or multiple languages at once (replaces odd calls like $page->status1234 = true). Added $page->setLanguageName() and $page->getLanguageName() for setting/getting the name of a page in a particular language or languages (replaces odd calls like $page->name1234 = 'page-name-in-spanish'). See the method descriptions in the Page class for details on usage. There are also examples of usage in the hook method implemenations in LanguageSupport.module and LanguageSupportPageNames.module. This was added for processwire/processwire-requests#475 but ended up taking it a little further. Ryan Cramer 2024-02-08 13:15:57 -05:00
  • 660ea79496 Add a few new LazyCron methods: getTimeFuncs(), getTimeFuncName($seconds), adn getTimeFuncSeconds($timeFuncName) for processwire/processwire-requests#485 Ryan Cramer 2024-02-07 10:39:24 -05:00