mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 15:23:11 +02:00
Fix example in InputfieldTextTags for cases where it is used without a Fieldtype
This commit is contained in:
@@ -997,7 +997,9 @@ class InputfieldTextTags extends Inputfield implements
|
|||||||
|
|
||||||
if($isTextField || $isPageField) {
|
if($isTextField || $isPageField) {
|
||||||
/** @var InputfieldText $f */
|
/** @var InputfieldText $f */
|
||||||
$examplePath = "find-$this->name";
|
$inputName = $this->name;
|
||||||
|
if(empty($inputName)) $inputName = '[field_name]';
|
||||||
|
$examplePath = "find-$inputName";
|
||||||
$exampleUrl = "/$examplePath/?q={q}";
|
$exampleUrl = "/$examplePath/?q={q}";
|
||||||
$exampleDescription =
|
$exampleDescription =
|
||||||
sprintf($this->_('URL handler example in file %s for URL %s'), '<code>/site/init.php</code>', "<code>$exampleUrl</code>") . ' — ' .
|
sprintf($this->_('URL handler example in file %s for URL %s'), '<code>/site/init.php</code>', "<code>$exampleUrl</code>") . ' — ' .
|
||||||
|
Reference in New Issue
Block a user