mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 06:44:38 +02:00
Fix issue processwire/processwire-issues#857
This commit is contained in:
@@ -31,8 +31,22 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* URL type: Absolute path from root (no relative paths)
|
||||
*
|
||||
*/
|
||||
const urlTypeAbsolute = 0;
|
||||
|
||||
/**
|
||||
* URL type: Relative path in same branch only
|
||||
*
|
||||
*/
|
||||
const urlTypeRelativeBranch = 1;
|
||||
|
||||
/**
|
||||
* URL type: Relative path always
|
||||
*
|
||||
*/
|
||||
const urlTypeRelativeAll = 2;
|
||||
|
||||
/**
|
||||
@@ -477,7 +491,7 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
|
||||
$f = $this->wire('modules')->get('InputfieldRadios');
|
||||
$f->attr('name', 'urlType');
|
||||
$f->label = $this->_('URL type for page links');
|
||||
$f->addOption(self::urlTypeAbsolute, $this->_('Absolute (default)'));
|
||||
$f->addOption(self::urlTypeAbsolute, $this->_('Full/absolute path from root (default)'));
|
||||
$f->addOption(self::urlTypeRelativeBranch, $this->_('Relative URLs in the same branches only') . '*');
|
||||
$f->addOption(self::urlTypeRelativeAll, $this->_('Relative URLs always') . '*');
|
||||
$f->attr('value', isset($data['urlType']) ? $data['urlType'] : self::urlTypeAbsolute);
|
||||
|
Reference in New Issue
Block a user