• Document Up to Date
  • Updated On 4.0.0

Content Type Editor Config

The Content Type Editor Config configuration file defines what tools are available in the Content Type Editor. This configuration is unique in that a configuration file exists in the following location of each project: SITENAME/config/studio/administration/site-config-tools.xml

Content Type Editor Config

To modify the Content Type Editor Config configuration, click on projectTools from the bottom of the Sidebar, then click on Configuration and select Content Type Editor Config from the list.

Configurations - Open Content Type Editor Config Tools

Sample

Here is a sample Content Type Editor Config configuration file (click on the triangle on the left to expand/collapse):

Sample Content Type Editor Config configuration file
CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/administration/site-config-tools.xml
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!--
  3  ~ Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
  4  ~
  5  ~ This program is free software: you can redistribute it and/or modify
  6  ~ it under the terms of the GNU General Public License version 3 as published by
  7  ~ the Free Software Foundation.
  8  ~
  9  ~ This program is distributed in the hope that it will be useful,
 10  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  ~ GNU General Public License for more details.
 13  ~
 14  ~ You should have received a copy of the GNU General Public License
 15  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 16  -->
 17
 18<!--
 19    Site Configuration Tools
 20
 21    This file helps configure the Site Config section with tools. The tools specified here appear on the left-
 22    hand-side of the Site Config section.
 23
 24    The file has the the following structure:
 25    <config>
 26        <tools>
 27            <tool>
 28                <name>sync-from-repository</name>
 29                <label>Sync From Repository</label>
 30                <icon>          (Optional icon configuration)
 31                    <styles>    ( Change default icon styles - using css rules )
 32                        <color>#409a00</color>
 33                        <font-size>16px</font-size>
 34                        <font-width>bold</font-width>
 35                    </styles>
 36                </icon>
 37                <... tool specific configuration ../>
 38            </tool>
 39        </tools>
 40    </config>
 41-->
 42<config>
 43    <version>12</version>
 44    <tools>
 45        <tool>
 46            <name>content-types</name>
 47            <label>Content Types</label>
 48            <formSection>
 49                <icon>
 50                    <class>fa-object-group</class>
 51                </icon>
 52            </formSection>
 53            <repeatSection>
 54                <icon>
 55                    <class>fa-repeat</class>
 56                </icon>
 57            </repeatSection>
 58            <controls>
 59                <control>
 60                    <name>input</name>
 61                    <icon>
 62                        <class>fa-pencil-square-o</class>
 63                    </icon>
 64                </control>
 65                <control>
 66                    <name>numeric-input</name>
 67                    <icon>
 68                        <class>fa-pencil-square</class>
 69                    </icon>
 70                </control>
 71                <control>
 72                    <name>textarea</name>
 73                    <icon>
 74                        <class>fa-paragraph</class>
 75                    </icon>
 76                </control>
 77                <control>
 78                    <name>rte</name>
 79                    <icon>
 80                        <class>fa-code</class>
 81                    </icon>
 82                </control>
 83                <control>
 84                    <name>dropdown</name>
 85                    <icon>
 86                        <class>fa-sort-desc</class>
 87                    </icon>
 88                </control>
 89                <control>
 90                    <name>time</name>
 91                    <icon>
 92                        <class>fa-clock-o</class>
 93                    </icon>
 94                </control>
 95                <control>
 96                    <name>date-time</name>
 97                    <icon>
 98                        <class>fa-calendar</class>
 99                        <stackedclass>fa-clock-o</stackedclass>
100                    </icon>
101                </control>
102                <control>
103                    <name>checkbox</name>
104                    <icon>
105                        <class>fa-check-square-o</class>
106                    </icon>
107                </control>
108                <control>
109                    <name>checkbox-group</name>
110                    <icon>
111                        <class>fa-check-square-o</class>
112                    </icon>
113                </control>
114                <control>
115                    <name>node-selector</name>
116                    <icon>
117                        <class>fa-crosshairs</class>
118                    </icon>
119                </control>
120                <control>
121                    <name>image-picker</name>
122                    <icon>
123                        <class>fa-picture-o</class>
124                    </icon>
125                </control>
126                <control>
127                    <name>video-picker</name>
128                    <icon>
129                        <class>fa-video-camera</class>
130                    </icon>
131                </control>
132                <control>
133                    <name>transcoded-video-picker</name>
134                    <icon>
135                        <class>fa-video-camera</class>
136                    </icon>
137                </control>
138                <control>
139                    <name>label</name>
140                    <icon>
141                        <class>fa-tag</class>
142                    </icon>
143                </control>
144                <control>
145                    <name>page-nav-order</name>
146                    <icon>
147                        <class>fa-sort</class>
148                    </icon>
149                </control>
150                <control>
151                    <name>file-name</name>
152                    <icon>
153                        <class>fa-file-o</class>
154                    </icon>
155                </control>
156                <control>
157                    <name>auto-filename</name>
158                    <icon>
159                        <class>fa-file-o</class>
160                        <stackedclass>fa-magic</stackedclass>
161                    </icon>
162                </control>
163                <control>
164                    <name>internal-name</name>
165                    <icon>
166                        <class>fa-font</class>
167                    </icon>
168                </control>
169                <control>
170                    <name>locale-selector</name>
171                    <icon>
172                        <class>fa-globe</class>
173                    </icon>
174                </control>
175            </controls>
176            <datasources>
177                <datasource>
178                    <name>components</name>
179                    <icon>
180                        <class>fa-puzzle-piece</class>
181                    </icon>
182                </datasource>
183                <datasource>
184                    <name>shared-content</name>
185                    <icon>
186                        <class>fa-share-alt</class>
187                    </icon>
188                </datasource>
189                <datasource>
190                    <name>embedded-content</name>
191                    <icon>
192                        <class>fa-dot-circle-o</class>
193                    </icon>
194                </datasource>
195                <datasource>
196                    <name>img-desktop-upload</name>
197                    <icon>
198                        <class>fa-picture-o</class>
199                    </icon>
200                </datasource>
201                <datasource>
202                    <name>img-repository-upload</name>
203                    <icon>
204                        <class>fa-file-image-o</class>
205                    </icon>
206                </datasource>
207                <datasource>
208                    <name>file-desktop-upload</name>
209                    <icon>
210                        <class>fa-upload</class>
211                    </icon>
212                </datasource>
213                <datasource>
214                    <name>file-browse-repo</name>
215                    <icon>
216                        <class>fa-hand-o-up</class>
217                    </icon>
218                </datasource>
219                <datasource>
220                    <name>CMIS-repo</name>
221                    <icon>
222                        <class>fa-plug</class>
223                    </icon>
224                </datasource>
225                <datasource>
226                    <name>img-cmis-repo</name>
227                    <icon>
228                        <class>fa-square</class>
229                        <stackedclass>fa-plug fa-inverse fa-image-plug</stackedclass>
230                    </icon>
231                </datasource>
232                <datasource>
233                    <name>video-cmis-repo</name>
234                    <icon>
235                        <class>fa-square-o fa-video-square</class>
236                        <stackedclass>fa-plug fa-video-plug</stackedclass>
237                    </icon>
238                </datasource>
239                <datasource>
240                    <name>CMIS-upload</name>
241                    <icon>
242                        <class>fa-plug</class>
243                    </icon>
244                </datasource>
245                <datasource>
246                    <name>img-CMIS-upload</name>
247                    <icon>
248                        <class>fa-square</class>
249                        <stackedclass>fa-plug fa-inverse fa-image-plug</stackedclass>
250                    </icon>
251                </datasource>
252                <datasource>
253                    <name>video-CMIS-upload</name>
254                    <icon>
255                        <class>fa-square-o fa-video-square</class>
256                        <stackedclass>fa-plug fa-video-plug</stackedclass>
257                    </icon>
258                </datasource>
259                <datasource>
260                    <name>WebDAV-repo</name>
261                    <icon>
262                        <class>fa-square-o fa-server</class>
263                    </icon>
264                </datasource>
265                <datasource>
266                    <name>img-WebDAV-repo</name>
267                    <icon>
268                        <class>fa-square-o fa-server</class>
269                    </icon>
270                </datasource>
271                <datasource>
272                    <name>video-WebDAV-repo</name>
273                    <icon>
274                        <class>fa-square-o fa-server</class>
275                    </icon>
276                </datasource>
277                <datasource>
278                    <name>WebDAV-upload</name>
279                    <icon>
280                        <class>fa-square-o fa-server</class>
281                    </icon>
282                </datasource>
283                <datasource>
284                    <name>img-WebDAV-upload</name>
285                    <icon>
286                        <class>fa-square-o fa-server</class>
287                    </icon>
288                </datasource>
289                <datasource>
290                    <name>video-WebDAV-upload</name>
291                    <icon>
292                        <class>fa-square-o fa-server</class>
293                    </icon>
294                </datasource>
295                <datasource>
296                    <name>S3-repo</name>
297                    <icon>
298                        <class>fa-file-o</class>
299                        <stackedclass>fa-amazon</stackedclass>
300                    </icon>
301                </datasource>
302                <datasource>
303                    <name>img-S3-repo</name>
304                    <icon>
305                        <class>fa-square</class>
306                        <stackedclass>fa-amazon fa-inverse</stackedclass>
307                    </icon>
308                </datasource>
309                <datasource>
310                    <name>video-S3-repo</name>
311                    <icon>
312                        <class>fa-film</class>
313                        <stackedclass>fa-amazon</stackedclass>
314                    </icon>
315                </datasource>
316                <datasource>
317                    <name>S3-upload</name>
318                    <icon>
319                        <class>fa-file-o</class>
320                        <stackedclass>fa-amazon</stackedclass>
321                    </icon>
322                </datasource>
323                <datasource>
324                    <name>img-S3-upload</name>
325                    <icon>
326                        <class>fa-square</class>
327                        <stackedclass>fa-amazon fa-inverse</stackedclass>
328                    </icon>
329                </datasource>
330                <datasource>
331                    <name>video-S3-upload</name>
332                    <icon>
333                        <class>fa-film</class>
334                        <stackedclass>fa-amazon</stackedclass>
335                    </icon>
336                </datasource>
337                <datasource>
338                    <name>video-S3-transcoding</name>
339                    <icon>
340                        <class>fa-film</class>
341                        <stackedclass>fa-amazon</stackedclass>
342                    </icon>
343                </datasource>
344                <datasource>
345                    <name>video-desktop-upload</name>
346                    <icon>
347                        <class>fa-video-camera</class>
348                    </icon>
349                </datasource>
350                <datasource>
351                    <name>video-browse-repo</name>
352                    <icon>
353                        <class>fa-file-video-o</class>
354                    </icon>
355                </datasource>
356                <datasource>
357                    <name>key-value-list</name>
358                    <icon>
359                        <class>fa-key</class>
360                    </icon>
361                </datasource>
362                <datasource>
363                    <name>simpleTaxonomy</name>
364                    <icon>
365                        <class>fa-tags</class>
366                    </icon>
367                </datasource>
368            </datasources>
369            <objectTypes>
370                <type>
371                    <label>Page</label>
372                    <name>page</name>
373                    <properties>
374                        <property>
375                            <name>display-template</name>
376                            <label>Display Template</label>
377                            <value></value>
378                            <type>template</type>
379                        </property>
380                        <property>
381                            <name>no-template-required</name>
382                            <label>No Template Required</label>
383                            <value></value>
384                            <type>boolean</type>
385                        </property>
386                        <property>
387                            <name>merge-strategy</name>
388                            <label>Merge Strategy</label>
389                            <value>inherit-levels</value>
390                            <type>string</type>
391                        </property>
392                    </properties>
393                </type>
394                <type>
395                    <label>Component</label>
396                    <name>component</name>
397                    <properties>
398                        <property>
399                            <name>display-template</name>
400                            <label>Display Template</label>
401                            <value></value>
402                            <type>template</type>
403                        </property>
404                        <property>
405                            <name>no-template-required</name>
406                            <label>No Template Required</label>
407                            <value></value>
408                            <type>boolean</type>
409                        </property>
410                        <property>
411                            <name>merge-strategy</name>
412                            <label>Merge Strategy</label>
413                            <value>inherit-levels</value>
414                            <type>string</type>
415                        </property>
416                    </properties>
417                </type>
418
419            </objectTypes>
420        </tool>
421        <tool>
422            <name>encrypt-tool</name>
423            <label>Encryption Tool</label>
424            <icon>
425                <class>fa-lock</class>
426            </icon>
427        </tool>
428        <tool>
429            <name>admin-configurations</name>
430            <label>Configuration</label>
431        </tool>
432        <tool>
433            <name>audit</name>
434            <label>Audit</label>
435        </tool>
436        <tool>
437            <name>workflow-states</name>
438            <label>Workflow States</label>
439        </tool>
440        <tool>
441            <name>log-view</name>
442            <label>Log Console</label>
443        </tool>
444        <tool>
445            <name>status-view</name>
446            <label>Publishing</label>
447            <icon>
448                <class>fa-cloud-upload</class>
449            </icon>
450        </tool>
451        <tool>
452            <name>repository</name>
453            <label>Remote Repositories</label>
454            <icon>
455                <class>fa-database</class>
456            </icon>
457        </tool>
458    <tool>
459        <name>graphiql</name>
460        <label>GraphiQL</label>
461        <icon>
462            <class>fa-line-chart</class>
463        </icon>
464    </tool>
465        <tool>
466            <name>plugin-management</name>
467            <label>Plugin Management</label>
468            <icon>
469                <class>fa-puzzle-piece</class>
470            </icon>
471        </tool>
472    </tools>
473</config>


Description

Content Type Specific tool configuration

/config/tools/tool/controls
List of available content type form controls
/config/tools/tool/controls/control
Control name (JavaScript control module name)
/config/tools/tool/datasources
List of available datasources for content type form controls
/config/tools/tool/datasources/datasource
Datasource name (JavaScript datasource module name)
/config/tools/tool/objectTypes
List of available object types
/config/tools/tool/objectTypes/type
Type configuration (Page or Component) - name, label, properties

List of available content type form controls

Control
Description
Form Controls - Form Section



Create a new section in the form, this is to help the content
authors by segmenting a form into sections of similar concern.

Details are in the Form Section Control page.
Form Controls - Repeating Group




Repeating groups are used when the form has one or several controls
that repeat to capture the same data as records. For example: a
list of images in a carousel, or a list of widgets on a page.

Details are in the Repeating Group Control page.
Form Controls - Input


A simple textual input line.

Details are in the Input Control page.
Form Controls - Numeric Input


A simple numeric input line.

Details are in the Numeric Input Control page.
Form Controls - Text Area


A simple block of plain text.

Details are in the Text Area Control page.
Form Controls - Rich Text Editor


A block of HTML.

Details are in the Rich Text Editor Control page.
Form Controls - Dropdown


Dropdown list of items to pick from.

Details are in the Dropdown Control page.
Form Controls - Date Time


Date and Time field with a picker.

Details are in the Date/Time Control page.
Form Controls - Time


Time field with a picker.

Details are in the Time Control page.
Form Controls - Check Box


True/False checkbox.

Details are in the Checkbox Control page.
Form Controls - Grouped Check Box


Several checkboxes (true/false).

Details are in the Grouped Checkboxes Control page.
Form Controls - Item Selector


Item selector from a Data Source

Details are in the Item Selector Control page.
Form Controls - Image


Image selector from a Data Source.

Details are in the Image Control page.
Form Controls - Video


Video selector from a Data Source.

Details are in the Video Control page.
Form Controls - Transcoded Video


Transcoded Video selector from Video Transcoding Data Source.

Details are in the Transcoded Video Control page.
Form Controls - Label


Displays text

Details are in the Label Control page.
Form Controls - Page Order


Allows changing the page order

Details are in the Page Order Control page.
Form Controls - File Name


A simple text filename

Details are in the Filename Control page.
Form Controls - Auto Filename




Details are in the Auto Filename Control page.
Form Controls - Internal Name




Details are in the Internal Name Control page.
Form Controls - Locale Selector




Details are in the Locale Selector Control page.

List of available content type data sources

Datasource
Description
Form Data Sources - Components
Details are in the Components Data Source page.
Form Data Sources - Shared Content
Details are in the Shared Content Data Source page.
Form Data Sources - Embedded Content
Details are in the Embedded Content Data Source page.
Form Data Sources - Image Uploaded From Desktop
Form Data Sources - Image From Repository
Details are in the Image from Repository Data Source page.
Form Data Sources - File Uploaded From Desktop
Form Data Sources - File Browse
Details are in the File Browse Data Source page.
Form Data Sources - CMIS Repo
Details are in the CMIS Repository Data Source page.
Form Data Sources - CMIS Image From Repository
Form Data Sources - CMIS Video From Repository
Form Data Sources - CMIS Upload
Details are in the CMIS File Upload Data Source page.
Form Data Sources - CMIS Image Upload to Repository
Form Data Sources - CMIS Video Upload to Repository
Form Data Sources - WebDAV Repo
Form Data Sources - WebDAV Image Repo
Form Data Sources - WebDAV Video Repo
Form Data Sources - WebDAV Upload
Details are in the WebDAV File Upload Data Source page.
Form Data Sources - WebDAV Image Upload
Details are in the WebDAV Image Upload Data Source page.
Form Data Sources - WebDAV Video Upload
Details are in the WebDAV Video Upload Data Source page.
Form Data Sources - S3 Repo
Details are in the S3 Repository Data Source page.
Form Data Sources - S3 Image Repo
Details are in the Image from S3 Repository Data Source page.
Form Data Sources - S3 Video Repo
Details are in the Video from S3 Repository Data Source page.
Form Data Sources - S3 Upload
Details are in the S3 File Upload Data Source page.
Form Data Sources - S3 Image Upload
Details are in the S3 Image Upload Data Source page.
Form Data Sources - S3 Video Upload
Details are in the S3 Video Upload Data Source page.
Form Data Sources - Video Upload then Transcode from S3 Repo
Form Data Sources - Video Uploaded From Desktop
Form Data Sources - Video From Repository
Details are in the Video from Repository Data Source page.
Form Data Sources - Static Key Value Pairs
Details are in the Static Key Value Pairs Data Source page.
Form Data Sources - Simple Taxonomy
Details are in the Simple Taxonomy Data Source page.