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