1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

Fix issue processwire/processwire-issues#420 to disable autocomplete via custom attribute for InputfieldPageName using suggestion by @Toutouwai

This commit is contained in:
Ryan Cramer
2017-11-02 09:29:40 -04:00
parent 7b19df0175
commit 34d15dadae

View File

@@ -136,6 +136,9 @@ class InputfieldPageName extends InputfieldName implements ConfigurableModule {
$this->set('parentPage', null); // parent of page being edited, when available
$this->set('languageSupportLabel', '');
$this->set('slashUrls', 1); // whether a trailing slash should be shown in the URL preview
// disable autocomplete for page name with custom attribute value
$this->attr('autocomplete', 'pw-page-name');
// optional checkbox associated with the input, for use with language support
$this->set('checkboxName', ''); // leave blank to disable