@@ 310-321 (lines=12) @@ | ||
307 | /** |
|
308 | * @return string |
|
309 | */ |
|
310 | public function getTitle() |
|
311 | { |
|
312 | if ($title = $this->getField('Title')) { |
|
313 | return $title; |
|
314 | } else { |
|
315 | if (!$this->isInDb()) { |
|
316 | return; |
|
317 | } |
|
318 | ||
319 | return $this->config()->title; |
|
320 | } |
|
321 | } |
|
322 | ||
323 | /** |
|
324 | * Get a unique anchor name |
|
@@ 363-373 (lines=11) @@ | ||
360 | /** |
|
361 | * @return string |
|
362 | */ |
|
363 | public function getCMSTitle() |
|
364 | { |
|
365 | if ($title = $this->getField('Title')) { |
|
366 | return $this->config()->title . ': ' . $title; |
|
367 | } else { |
|
368 | if (!$this->isInDb()) { |
|
369 | return; |
|
370 | } |
|
371 | return $this->config()->title; |
|
372 | } |
|
373 | } |
|
374 | ||
375 | public function ControllerTop() |
|
376 | { |