1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-19 21:11:43 +02:00

Refactoring of the PagesEditor class, primarily addition of a new PagesNames class for handling page names, duplicate names, untitled pages, incrementing page names, etc.

This commit is contained in:
Ryan Cramer
2018-08-23 10:30:12 -04:00
parent 088938454b
commit dfa8cc7b74
6 changed files with 653 additions and 176 deletions

View File

@@ -806,6 +806,16 @@ $config->pageNameCharset = 'ascii';
*/
$config->pageNameWhitelist = '-_.abcdefghijklmnopqrstuvwxyz0123456789æåäßöüđжхцчшщюяàáâèéëêěìíïîõòóôøùúûůñçčćďĺľńňŕřšťýžабвгдеёзийклмнопрстуфыэęąśłżź';
/**
* Name to use for untitled pages
*
* When page has this name, the name will be changed automatically (to a field like title) when it is possible to do so.
*
* @var string
*
*/
$config->pageNameUntitled = "untitled";
/**
* Maximum paginations
*