summaryrefslogtreecommitdiff
path: root/protected/modules/cms/views/sitecontent
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-30 16:59:07 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-30 16:59:07 +0200
commit10b3e68c049cc0830584e535b9273ec1c7745450 (patch)
tree59d9eb85033dbc02b33eb7a92c252d87bd835ba0 /protected/modules/cms/views/sitecontent
parent2a8b46329775b8503519d432a52dba13e8547d8e (diff)
cms fixes + suche
Diffstat (limited to 'protected/modules/cms/views/sitecontent')
-rw-r--r--protected/modules/cms/views/sitecontent/_form.php10
-rw-r--r--protected/modules/cms/views/sitecontent/draw.php5
2 files changed, 12 insertions, 3 deletions
diff --git a/protected/modules/cms/views/sitecontent/_form.php b/protected/modules/cms/views/sitecontent/_form.php
index fc240cd..6c8d056 100644
--- a/protected/modules/cms/views/sitecontent/_form.php
+++ b/protected/modules/cms/views/sitecontent/_form.php
@@ -83,8 +83,14 @@ Yii::app()->clientScript-> registerScriptFile(Yii::app()->getModule('cms')->rtea
<div class="row">
<?php echo $form->labelEx($model,'content'); ?>
-<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
-<?php Yii::app()->clientScript->registerScript("ckeditor", "$('#Sitecontent_content').ckeditor();"); ?>
+<?php $this->widget('application.extensions.extckeditor.ExtCKEditor', array(
+'model'=>$model,
+'attribute'=>'content', // model atribute
+'language'=>'DE', /* default lang, If not declared the language of the project will be used in case of using multiple languages */
+'editorTemplate'=>'full', // Toolbar settings (full, basic, advanced)
+)); ?>
+<?php //echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
+<?php //Yii::app()->clientScript->registerScript("ckeditor", "$('#Sitecontent_content').ckeditor();"); ?>
<?php echo $form->error($model,'content'); ?>
</div>
diff --git a/protected/modules/cms/views/sitecontent/draw.php b/protected/modules/cms/views/sitecontent/draw.php
index 7bcb6f6..9c34a12 100644
--- a/protected/modules/cms/views/sitecontent/draw.php
+++ b/protected/modules/cms/views/sitecontent/draw.php
@@ -1 +1,4 @@
-<?php echo CHtml::encode($sitecontent->content); ?>
+<h2><?php echo $sitecontent->title?></h2>
+<?php //echo CHtml::encode($sitecontent->content);
+echo $sitecontent->content;
+?>