@@ -62,20 +62,35 @@ For more information, see the
62
62
),
63
63
));
64
64
65
+ .. _config-create-object-mapper-service-id :
66
+
67
+ ``object_mapper_service_id ``
68
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
+
70
+ **type **: ``string `` **default **: ``"cmf_create.chain_mapper" ``
71
+
72
+ You can specify a service implementing ``Midgard\CreatePHP\RdfMapperInterface ``
73
+ that will handle objects that need to be stored by the REST handler of
74
+ CreatePHP. You need to either specify this service, enable phpcr or orm
75
+ persistence or define one or more services that implement the
76
+ ``Midgard\CreatePHP\RdfChainableMapperInterface `` and tag them with ``cmf_create.mapper ``.
77
+
65
78
.. _config-create-persistence :
66
79
67
80
``persistence ``
68
81
~~~~~~~~~~~~~~~
69
82
70
- This defines the persistence driver and associated classes. The default
71
- persistence configuration has the following configuration:
83
+ This defines a persistence driver for Doctrine PHPCR-ODM documents or Doctrine ORM entities.
84
+ If you specify neither, see :ref: `config-create-object-mapper-service-id `.
85
+
86
+ ``phpcr ``
87
+ .........
72
88
73
89
.. configuration-block ::
74
90
75
91
.. code-block :: yaml
76
92
77
93
cmf_create :
78
- object_mapper_service_id : ~
79
94
persistence :
80
95
phpcr :
81
96
enabled : false
@@ -127,13 +142,6 @@ persistence configuration has the following configuration:
127
142
),
128
143
));
129
144
130
- ``object_mapper_service_id ``
131
- """"""""""""""""""""""""""""
132
-
133
- You can specify a service implementing ``Midgard\CreatePHP\RdfMapperInterface ``
134
- that will handle objects that need to be stored by the REST handler of
135
- CreatePHP. You need to either specify this service or enable the phpcr
136
- persistence for this bundle to work.
137
145
138
146
``enabled ``
139
147
"""""""""""
@@ -164,6 +172,60 @@ Set delete to true to enable the simple delete workflow. This allows to directly
164
172
delete content from the frontend. Be careful, there are no special checks once you confirm deletion
165
173
your content is gone.
166
174
175
+ ``orm ``
176
+ .......
177
+
178
+ .. configuration-block ::
179
+
180
+ .. code-block :: yaml
181
+
182
+ cmf_create :
183
+ persistence :
184
+ orm :
185
+ enabled : false
186
+ manager_name : ~
187
+
188
+ .. code-block :: xml
189
+
190
+ <?xml version =" 1.0" charset =" UTF-8" ?>
191
+ <container xmlns =" http://symfony.com/schema/dic/services" >
192
+ <config xmlns =" http://cmf.symfony.com/schema/dic/create" >
193
+ <persistence >
194
+ <orm
195
+ enabled =" false"
196
+ manager-name =" null"
197
+ />
198
+ </persistence >
199
+ </config >
200
+ </container >
201
+
202
+ .. code-block :: php
203
+
204
+ $container->loadFromExtension('cmf_create', array(
205
+ 'persistence' => array(
206
+ 'orm' => array(
207
+ 'enabled' => false,
208
+ 'manager_name' => null,
209
+ ),
210
+ ),
211
+ ));
212
+
213
+
214
+ ``enabled ``
215
+ """""""""""
216
+
217
+ **type **: ``boolean `` **default **: ``false ``
218
+
219
+ If ``true ``, the ORM is included in the chain mapper.
220
+
221
+ ``manager_name ``
222
+ """"""""""""""""
223
+
224
+ **type **: ``string `` **default **: ``null ``
225
+
226
+ The name of the Doctrine Manager to use.
227
+
228
+
167
229
Metadata Handling
168
230
~~~~~~~~~~~~~~~~~
169
231
@@ -198,19 +260,19 @@ Metadata Handling
198
260
));
199
261
200
262
``auto_mapping ``
201
- """"""""""""""""
263
+ ................
202
264
203
265
If not set to false, the CreateBundle will look for mapping files in every
204
266
bundle in the directory ``Resources/rdf-mappings ``.
205
267
206
268
``rdf_config_dirs ``
207
- """""""""""""""""""
269
+ ...................
208
270
209
271
Additional directories to look for mapping files besides the auto mapped
210
272
directory.
211
273
212
274
``map ``
213
- """""""
275
+ .......
214
276
215
277
Mapping from RDF type name to class. This configuration is used when adding
216
278
items to collections. *Note that collection support is currently incomplete
@@ -270,26 +332,26 @@ setting is the ``plain_text_types``.
270
332
));
271
333
272
334
``plain_text_types ``
273
- """"""""""""""""""""
335
+ ....................
274
336
275
337
A list of RDFa field types that will be edited with a plain text editor without
276
338
any formatting options. All other fields are edited with the WYSIWYG options
277
339
activated.
278
340
279
341
``editor_base_path ``
280
- """"""""""""""""""""
342
+ ....................
281
343
282
344
If you use a non-standard setup, you can adjust the editor base path
283
345
configuration. This is only relevant for CKEditor.
284
346
285
347
``fixed_toolbar ``
286
- """""""""""""""""
348
+ .................
287
349
288
350
Fix the editor toolbar on top of the page. Currently only supported by the
289
351
hallo.js editor.
290
352
291
353
``stanbol_url ``
292
- """""""""""""""
354
+ ...............
293
355
294
356
Apache stanbol can be used for semantic enhancement of content. This feature
295
357
can optionally be used with the hallo.js editor.
0 commit comments