Permalink
Browse files

Merge pull request #1 from JanReuteler/master

Extension now compatible with Contao v2.11.2
  • Loading branch information...
2 parents 1523635 + 22bc3c6 commit c0ca350d5b8564ea7c060ac19800edc980246251 @aschempp committed Jun 4, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 ModulePageHeadline.php
  2. +1 −1 dca/tl_page.php
  3. +2 −2 templates/mod_pageheadline.html5
View
@@ -41,7 +41,7 @@ public function generate()
$objTemplate->title = $this->headline;
$objTemplate->id = $this->id;
$objTemplate->link = $this->name;
- $objTemplate->href = 'typolight/main.php?do=modules&act=edit&id=' . $this->id;
+ $objTemplate->href = 'contao/main.php?do=modules&act=edit&id=' . $this->id;
return $objTemplate->parse();
}
@@ -61,7 +61,7 @@ protected function compile()
$this->Template->headline = strlen($objPage->pageTitle) ? $objPage->pageTitle : $objPage->title;
- // Current page has an image
+ // Current page has a headline
if (strlen($objPage->pageHeadline))
{
$this->Template->headline = $objPage->pageHeadline;
View
@@ -39,6 +39,6 @@
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['pageHeadline'],
'inputType' => 'text',
- 'eval' => array('maxlenght'=>255, 'tl_class'=>'long'),
+ 'eval' => array('maxlenght'=>255, 'allowHtml'=>true, 'tl_class'=>'long'),
);
@@ -1,4 +1,4 @@
-<section class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
+<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
-</section>
+</div>

0 comments on commit c0ca350

Please sign in to comment.