Browse files

added title and path properties

  • Loading branch information...
1 parent c792236 commit 34ec2c1f83e7e3fab620083ece1885863373826b @elHornair elHornair committed Feb 11, 2013
Showing with 23 additions and 0 deletions.
  1. +21 −0 Document/SlideshowBlock.php
  2. +2 −0 Resources/views/Block/block_slideshow.html.twig
View
21 Document/SlideshowBlock.php
@@ -13,6 +13,14 @@
class SlideshowBlock extends ContainerBlock
{
+ /** @PHPCRODM\String */
+ protected $title;
+
+ /**
+ * @PHPCRODM\Id
+ */
+ protected $path;
+
/**
* {@inheritdoc}
*/
@@ -21,4 +29,17 @@ public function getType()
return 'symfony_cmf.block.slideshow';
}
+ public function getTitle() {
+ return $this->title;
+ }
+
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+
+ public function getPath()
+ {
+ return $this->path;
+ }
+
}
View
2 Resources/views/Block/block_slideshow.html.twig
@@ -2,6 +2,8 @@
{% block block %}
+ <h3>Block title: {{ block.title }}</h3>
+
<div class="slideshow">
<ul>
{% for item in itemBlocks %}

0 comments on commit 34ec2c1

Please sign in to comment.