From 34d15dadae9e482a11939110277565aa38f8f1a4 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 2 Nov 2017 09:29:40 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#420 to disable autocomplete via custom attribute for InputfieldPageName using suggestion by @Toutouwai --- .../Inputfield/InputfieldPageName/InputfieldPageName.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module b/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module index 5fc9d994..51189da8 100644 --- a/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module +++ b/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module @@ -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