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

Some cleanup in ProcessPageAdd plus add support for disabling template suggestions when adding pages per processwire/processwire-issues#424 via $config->pageAdd('noSuggestTemplates', true); or specify space-separated list of template names (string) for the "true" value.

This commit is contained in:
Ryan Cramer
2017-12-04 09:51:11 -05:00
parent 337e59663b
commit a865e0a053
5 changed files with 266 additions and 63 deletions

View File

@@ -1025,6 +1025,30 @@ $config->pageEdit = array(
'editCrumbs' => false,
);
/**
* PageAdd default settings
*
* #property string noSuggestTemplates Disable suggestions for new pages (1=disable all, or specify template names separated by space)
*
*/
$config->pageAdd = array(
'noSuggestTemplates' => '',
);
/**
* Disable template suggestions when adding new pages?
*
* Applies when adding a new page where more than one template may be selected for the newly added page.
*
* - true: Always disable template suggestions (forcing user to make selection)
* - false: Never disable template suggestions (default)
* - array: Array of template names or IDs where suggestions should be disabled when children are added.
*
* @var bool|array
*
$config->noSuggestTemplate = false;
*/
/*** 9. MISC ************************************************************************************/
@@ -1057,7 +1081,7 @@ $config->logIP = false;
*
* Module name of default admin theme for guest and users that haven't already selected one
*
* Core options include: **AdminThemeDefault** or **AdminThemeReno**.
* Core options include: **AdminThemeDefault** or **AdminThemeReno** or **AdminThemeUikit**.
* Additional options will depend on what other 3rd party AdminTheme modules you have installed.
*
* @var string
@@ -1195,6 +1219,7 @@ $config->lazyPageChunkSize = 250;
*
*/
/*** 10. RUNTIME ********************************************************************************
*
* The following are runtime-only settings and cannot be changed from /site/config.php