summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-06-26 19:25:58 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-06-26 19:25:58 +0200
commit0dd6a984223f2c5607c430e456e0301b349044f4 (patch)
tree2a6bc9a3a4fd5df711aa72377d106e6760a924b1
parentdac46810d257f91fc85885a3d59cf7aea0d43197 (diff)
Titelzeile anpassen (SEO)
-rw-r--r--protected/modules/cms/views/sitecontent/view.php8
-rw-r--r--protected/views/search/results.php4
-rw-r--r--protected/views/standort/index.php1
-rw-r--r--protected/views/standort/view.php4
-rw-r--r--protected/views/veranstaltung/index.php1
-rw-r--r--protected/views/veranstaltung/now.php2
-rw-r--r--protected/views/veranstaltung/view.php1
-rw-r--r--protected/views/verein/index.php1
-rw-r--r--protected/views/verein/view.php1
9 files changed, 15 insertions, 8 deletions
diff --git a/protected/modules/cms/views/sitecontent/view.php b/protected/modules/cms/views/sitecontent/view.php
index c75f610..3c299c8 100644
--- a/protected/modules/cms/views/sitecontent/view.php
+++ b/protected/modules/cms/views/sitecontent/view.php
@@ -1,9 +1,9 @@
<?php
-if(isset($sc))
- $this->pageTitle = $sc->title . ' - ' . Yii::app()->name;
-if(isset($menu))
+if(isset($sitecontent))
+ $this->pageTitle = $sitecontent->title . ' - ' . Yii::app()->name;
+/*if(isset($menu))
$this->pageTitle = $menu->title. ' - ' . Yii::app()->name;
-
+*/
if(Yii::app()->user->id == 1) // is admin
{
if(is_object($sitecontent))
diff --git a/protected/views/search/results.php b/protected/views/search/results.php
index e72cc51..b2af731 100644
--- a/protected/views/search/results.php
+++ b/protected/views/search/results.php
@@ -2,7 +2,9 @@
$this->breadcrumbs=array(
'Search'=>array('/search'),
'Results',
-);?>
+);
+$this->pageTitle = 'Suchergebnisse für ' .CHtml::encode($search). ' - ' . Yii::app()->name;
+?>
<h3>Suchergebnisse für "<?php echo CHtml::encode($search) ?>"</h3>
<?php foreach ($results as $mod => $res) {?>
<?php $dataProvider = new CArrayDataProvider($res);
diff --git a/protected/views/standort/index.php b/protected/views/standort/index.php
index eabd7a6..f5eda10 100644
--- a/protected/views/standort/index.php
+++ b/protected/views/standort/index.php
@@ -2,6 +2,7 @@
$this->breadcrumbs=array(
'Standorte'
);
+$this->pageTitle = 'Standorte - ' . Yii::app()->name;
$this->menu=array(
diff --git a/protected/views/standort/view.php b/protected/views/standort/view.php
index df5a235..098f397 100644
--- a/protected/views/standort/view.php
+++ b/protected/views/standort/view.php
@@ -1,9 +1,9 @@
<?php
$this->breadcrumbs=array(
- 'Speis & Trank'=>array('index'),
+ 'Standort'=>array('index'),
$model->name,
);
-
+$this->pageTitle = $model->name . ' - ' . Yii::app()->name;
$this->menu=array(
array('label'=>'Standorte', 'url'=>array('index')),
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php
index 89c3894..c7e1145 100644
--- a/protected/views/veranstaltung/index.php
+++ b/protected/views/veranstaltung/index.php
@@ -2,6 +2,7 @@
$this->breadcrumbs=array(
'Veranstaltungen',
);
+$this->pageTitle = 'Veranstaltungen - ' . Yii::app()->name;
$this->menu=array(
array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')),
diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php
index 24354f2..c9cf1c3 100644
--- a/protected/views/veranstaltung/now.php
+++ b/protected/views/veranstaltung/now.php
@@ -2,7 +2,7 @@
$this->breadcrumbs=array(
'Veranstaltungen'=>array('index'),'Jetzt'
);
-
+$this->pageTitle = 'Jetzt auf dem Fest - ' . Yii::app()->name;
$this->menu=array(
array('label'=>'Alle Veranstaltungen', 'url'=>array('index')),
diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php
index edf3ca2..2547f4f 100644
--- a/protected/views/veranstaltung/view.php
+++ b/protected/views/veranstaltung/view.php
@@ -3,6 +3,7 @@ $this->breadcrumbs=array(
'Veranstaltungen'=>array('index'),
$model->titel,
);
+$this->pageTitle = $model->titel . ' - ' . Yii::app()->name;
$this->menu=array(
array('label'=>'Alle Veranstaltungen', 'url'=>array('index')),
diff --git a/protected/views/verein/index.php b/protected/views/verein/index.php
index bfb20a8..3f3a807 100644
--- a/protected/views/verein/index.php
+++ b/protected/views/verein/index.php
@@ -2,6 +2,7 @@
$this->breadcrumbs=array(
'Vereine',
);
+$this->pageTitle = 'Vereine anzeigen - ' . Yii::app()->name;
/*
$this->menu=array(
array('label' => 'Verein suchen', 'url' => array('search')),
diff --git a/protected/views/verein/view.php b/protected/views/verein/view.php
index 2e0d0e5..3bb770f 100644
--- a/protected/views/verein/view.php
+++ b/protected/views/verein/view.php
@@ -3,6 +3,7 @@ $this->breadcrumbs=array(
'Vereine'=>array('index'),
$model->name,
);
+$this->pageTitle = $model->name . ' - ' . Yii::app()->name;
/*$this->menu=array(
array('label'=>'Vereine verwalten', 'url'=>array('index')),