This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -162,3 +162,32 @@ into a browsable website. The overall, simplified process is:
162
162
Again, this is simplified view of a very simple CMS built on top of Symfony CMF.
163
163
To fully understand all the possibilities of the CMF, a careful look into
164
164
each component is needed.
165
+
166
+ If you want to review the contents of the PHPCR database you can use the following command:
167
+
168
+ .. code-block :: bash
169
+
170
+ $ php app/console doctrine:phpcr:dump
171
+
172
+ Adding new pages
173
+ ~~~~~~~~~~~~~~~~
174
+
175
+ Symfony CMF SE does not provide any admin tools to create new pages. If you are interested in adding
176
+ an admin UI have a look at :doc: `../tutorials/creating-cms-using-cmf-and-sonata `. However if all you
177
+ want is a simple way to add new pages that you can then edit via the inline editing, then you can
178
+ use the SimpleCmsBundle ``page `` migrator. The Symfony CMF SE ships with an example yaml file stored
179
+ in ``app/Resources/data/pages/test.yml ``. The contents of this file can be loaded into the PHPCR
180
+ database by calling:
181
+
182
+ .. code-block :: bash
183
+
184
+ $ php app/console doctrine:phpcr:migrator page --identifier=/cms/simple/test
185
+
186
+ Note that the above identifier is mapped to ``app/Resources/data/pages/test.yml `` by stripping
187
+ off the ``basepath `` configuration of the SimpleCmsBundle, which defaults to ``/cms/simple ``.
188
+ Therefore if you want to define a child page ``foo `` for ``/cms/simple/test `` you would need to
189
+ create a file ````app/Resources/data/pages/test/foo.yml `` and then run the following command:
190
+
191
+ .. code-block :: bash
192
+
193
+ $ php app/console doctrine:phpcr:migrator page --identifier=/cms/simple/test/foo
You can’t perform that action at this time.
0 commit comments