This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree 4 files changed +9
-12
lines changed
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,6 @@ cmf_routing:
92
92
knp_menu :
93
93
twig : true
94
94
95
- cmf_block :
96
- persistence :
97
- phpcr :
98
- block_basepath : /cms/blocks
99
-
100
95
sonata_block :
101
96
default_contexts : [cms]
102
97
Original file line number Diff line number Diff line change 2
2
3
3
namespace Acme \DemoBundle \DataFixtures \PHPCR ;
4
4
5
+ use Doctrine \ODM \PHPCR \DocumentManager ;
5
6
use Nelmio \Alice \Fixtures ;
6
7
use Doctrine \Common \Persistence \ObjectManager ;
7
8
use Doctrine \Common \DataFixtures \FixtureInterface ;
8
- use Symfony \ Cmf \ Bundle \ SimpleCmsBundle \ Doctrine \ Phpcr \ Page ;
9
+ use PHPCR \ Util \ NodeHelper ;
9
10
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \MenuNode ;
10
11
11
12
/**
@@ -16,7 +17,7 @@ class LoadDemoData implements FixtureInterface
16
17
/**
17
18
* Load data fixtures with the passed DocumentManager
18
19
*
19
- * @param ObjectManager $manager
20
+ * @param DocumentManager $manager
20
21
*/
21
22
public function load (ObjectManager $ manager )
22
23
{
@@ -38,6 +39,7 @@ public function load(ObjectManager $manager)
38
39
Fixtures::load (array (__DIR__ .'/../../Resources/data/pages.yml ' ), $ manager );
39
40
40
41
// load the blocks
42
+ NodeHelper::createPath ($ manager ->getPhpcrSession (), '/cms/content/blocks ' );
41
43
Fixtures::load (array (__DIR__ .'/../../Resources/data/blocks.yml ' ), $ manager );
42
44
43
45
// save the changes
Original file line number Diff line number Diff line change 1
1
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock :
2
2
hero_unit :
3
- id : /cms/blocks/hero_unit
3
+ id : /cms/content/ blocks/hero_unit
4
4
5
5
Acme\DemoBundle\Document\UnitBlock :
6
6
read_quick_tour :
7
- id : /cms/blocks/hero_unit/quick_tour
7
+ id : /cms/content/ blocks/hero_unit/quick_tour
8
8
text : Read the Quick Tour
9
9
url : http://symfony.com/doc/current/cmf/quick_tour/the_big_picture.html
10
10
image : bundles/acmedemo/images/welcome-quick-tour.gif
11
11
12
12
configure :
13
- id : /cms/blocks/hero_unit/configure
13
+ id : /cms/content/ blocks/hero_unit/configure
14
14
text : Configure
15
15
route : _configurator_home
16
16
image : bundles/acmedemo/images/welcome-configure.gif
17
17
18
18
demo :
19
- id : /cms/blocks/hero_unit/demo
19
+ id : /cms/content/ blocks/hero_unit/demo
20
20
text : View the demo
21
21
route : /cms/simple/demo
22
22
image : bundles/acmedemo/images/welcome-demo.gif
Original file line number Diff line number Diff line change 7
7
8
8
{% block main %}
9
9
<div class =" row" >
10
- {{ sonata_block_render({' name' : ' /cms/blocks/hero_unit' }) }}
10
+ {{ sonata_block_render({' name' : ' /cms/content/ blocks/hero_unit' }) }}
11
11
</div >
12
12
{% endblock %}
You can’t perform that action at this time.
0 commit comments