diff --git a/wire/core/Inputfield.php b/wire/core/Inputfield.php index 600172e2..cc3683d5 100644 --- a/wire/core/Inputfield.php +++ b/wire/core/Inputfield.php @@ -481,7 +481,8 @@ abstract class Inputfield extends WireData implements Module { if(strlen($value)) return $value; if($this->skipLabel & self::skipLabelBlank) return ''; return $this->attributes['name']; - } + } + if($key === 'description' || $key === 'notes') return parent::get($key); if($key === 'name' || $key === 'value' || $key === 'id') return $this->getAttribute($key); if($key === 'attributes') return $this->attributes; if($key === 'parent') return $this->parent; diff --git a/wire/core/Interfaces.php b/wire/core/Interfaces.php index 7d956c83..d19215cd 100644 --- a/wire/core/Interfaces.php +++ b/wire/core/Interfaces.php @@ -575,6 +575,23 @@ interface InputfieldSupportsArrayValue { public function setArrayValue(array $value); } +/** + * Inputfield that supports a Page selector for selectable options + * + * @since 3.0.176 + * + */ +interface InputfieldSupportsPageSelector { + /** + * Set page selector or test if feature is disabledd + * + * @param string $selector Selector string or blank string when testing if feature is disabled + * @return bool Return boolean false if feature disabled, otherwise boolean true + * + */ + public function setPageSelector($selector); +} + /** * Inputfield that has a text value by default *