-
Notifications
You must be signed in to change notification settings - Fork 2
/
Config.spec
50 lines (45 loc) · 2.08 KB
/
Config.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ---+ Extensions
# ---++ AutoTemplatePlugin
# This is the configuration used by the <b>AutoTemplatePlugin</b>.
# **BOOLEAN**
# Turn on/off debugging in debug.txt
$Foswiki::cfg{Plugins}{AutoTemplatePlugin}{Debug} = 0;
# **BOOLEAN**
# Template defined by form overrides existing VIEW_TEMPLATE or EDIT_TEMPLATE settings
$Foswiki::cfg{Plugins}{AutoTemplatePlugin}{Override} = 0;
# **STRING**
# Comma separated list of modes defining how to find the view or edit template.
# The following modes can be combined:
# <ul>
# <li> 'exist': the template name is derived from the name of the form definition topic. </li>
# <li> 'section': the template name is defined in a section in the form definition topic. </li>
# <li> 'rules': the template name is defined using the below rule sets in <code>ViewTemplateRules</code>
# and <code>EditTemplateRules</code> </li>
# </ul>
$Foswiki::cfg{Plugins}{AutoTemplatePlugin}{Mode} = 'rules, exist';
# **PERL**
# Rule set used to derive the view template name. This is a list of rules of the form
# <code>'pattern' => 'template'</code>. The current topic is matched against each of the
# patterns in the given order. The first matching pattern determines the concrete view template.
$Foswiki::cfg{Plugins}{AutoTemplatePlugin}{ViewTemplateRules} = {
'ChangePassword' => 'ChangePasswordView',
'ResetPassword' => 'ResetPasswordView',
'ChangeEmailAddress' => 'ChangeEmailAddressView',
'UserRegistration' => 'UserRegistrationView',
'WebAtom' => 'WebAtomView',
'WebChanges' => 'WebChangesView',
'SiteChanges' => 'SiteChangesView',
'WebCreateNewTopic' => 'WebCreateNewTopicView',
'WebRss' => 'WebRssView',
'WebSearchAdvanced' => 'WebSearchAdvancedView',
'WebSearch' => 'WebSearchView',
'WebTopicList' => 'WebTopicListView',
'WebIndex' => 'WebIndexView',
'WikiGroups' => 'WikiGroupsView',
'WikiUsers' => 'WikiUsersView',
};
# **PERL**
# Rule set used to derive the edit template name. The format is the same as for the <code>{ViewTempalteRules}</code>
# configuration. This rule set is used during edit.
$Foswiki::cfg{Plugins}{AutoTemplatePlugin}{EditTemplateRules} = {
};