Add source link

This commit is contained in:
Kazhnuz 2025-03-02 09:40:12 +01:00
parent a64916d022
commit 1a9d858e70
4 changed files with 24 additions and 0 deletions

View file

@ -156,6 +156,15 @@ echo Bootstrap::formInputHidden(array(
'rows' => 5,
'placeholder' => $L->get('this-field-can-help-describe-the-content')
));
// Source Link
echo Bootstrap::formInputTextBlock(array(
'name' => 'sourceLink',
'label' => $L->g('Source Link'),
'placeholder' => '',
'tip' => $L->g('The external link you refer to in the post'),
'value' => $page->sourceLink()
));
?>
<!-- Cover Image -->

View file

@ -145,6 +145,15 @@ echo Bootstrap::formInputHidden(array(
'rows' => 5,
'placeholder' => $L->get('this-field-can-help-describe-the-content')
));
// Source Link
echo Bootstrap::formInputTextBlock(array(
'name' => 'sourceLink',
'label' => $L->g('Source Link'),
'placeholder' => '',
'tip' => $L->g('The external link you refer to in the post'),
'value' => ''
));
?>
<!-- Cover Image -->

View file

@ -22,6 +22,7 @@ class Pages extends dbJSON
'noindex' => false,
'nofollow' => false,
'noarchive' => false,
'sourceLink'=>'',
'custom' => array()
);

View file

@ -435,6 +435,11 @@ class Page
return $this->getValue('noarchive');
}
// retour the source link
public function sourceLink() {
return $this->getValue('sourceLink');
}
// Returns the page slug
public function slug()
{