Add Post Kinds #65

Merged
kazhnuz merged 12 commits from koblog-redo into koblog2 2025-06-26 20:57:40 +02:00
4 changed files with 24 additions and 0 deletions
Showing only changes of commit 1a9d858e70 - Show all commits

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()
{