mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +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:
@@ -137,6 +137,9 @@ class InputfieldPageName extends InputfieldName implements ConfigurableModule {
|
|||||||
$this->set('languageSupportLabel', '');
|
$this->set('languageSupportLabel', '');
|
||||||
$this->set('slashUrls', 1); // whether a trailing slash should be shown in the URL preview
|
$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
|
// optional checkbox associated with the input, for use with language support
|
||||||
$this->set('checkboxName', ''); // leave blank to disable
|
$this->set('checkboxName', ''); // leave blank to disable
|
||||||
$this->set('checkboxLabel', '');
|
$this->set('checkboxLabel', '');
|
||||||
|
Reference in New Issue
Block a user