Automatically add more elements when creating article

Build 1501 on 14/Nov/2017  This topic last edited on: 18/Mar/2016, at 09:17

You may want to select which article elements to create automatically when you create a new article on the Articles main tab.

Default: the body element is created automatically

Choices: add the head element and/or webhead element

To automatically add more elements when creating article

1.On the Edit menu of the Articles main tab, click Preferences.

2.On the Extra tab, click General sub-tab, and then do one or more of the following

Tick or untick Add Head when creating article.

Tick or untick Add Webhead when creating article.

3.Click OK to save the preference.

About saving preferences in database

When you click OK, the preferences are updated in the memory and applied right-on. GN4 will store the preference in the database when you exit application. Anyway, should your GN4 crash or exit in any other abnormal way, the preference will not be stored in database, and you will have to repeat the previously described steps.

This preference is stored in the Editorial_SystemUserConfig for the securityRef corresponding to the user name. To display that configuration, open EdAdmin4, click Client Applications, expand the search pane in the left sidebar, in the Name enter editorial, and in the securityRef select the name of the user. Double-click the Editorial_SystemUserConfig to open the content. Locate the preference by name.

Set "add more elements" global preference for Ted4

In the EditorialConfig, under the <Dict> node, add the line:

<Item Name="glbNewArtElts" Value="head,intro,jumphead" />

where the Value is a delimited list of valid article element names.

Now, when users create an article, all the listed elements are added automatically, independently of the "Add Head when Creating Article" personal preference.