Skip to content

Commit

Permalink
Add input for extra_description
Browse files Browse the repository at this point in the history
  • Loading branch information
saiat3 committed Nov 13, 2017
1 parent d42e26a commit abcf649
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions views/article/_tab_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,26 @@
]
) ?>

<?php echo $form->field($model, 'extra_description')->widget(
\yii\imperavi\Widget::className(),
[
'plugins' => ['table', 'fullscreen', 'fontcolor', 'video'],
'htmlOptions' => [
'name' => "{$className}[$language][extra_description]",
'value' => $model->getExtraDescription()
],
'options' => [
'minHeight' => 100,
'maxHeight' => 200,
'buttonSource' => true,
'convertDivs' => false,
'removeEmptyTags' => false,
'replaceDivs' => false,
'imageUpload' => Url::to(['upload-imperavi'])
]
]
) ?>

<?php echo $form->field($model, 'meta_title', [
'inputOptions' => [
'name' => "{$className}[$language][meta_title]"
Expand Down

0 comments on commit abcf649

Please sign in to comment.