Configuration.html 6.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:if condition="{inData.pagetree.id}">
	<h3>
		<f:translate key="makeconfig_exportPagetreeConfiguration" />
		<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeCfg" />
	</h3>
	<div class="row">
		<div class="col-sm-2">
			<label class="control-label"><f:translate key="makeconfig_pageId" /></label>
		</div>
		<div class="col-sm-10">
			{inData.pagetree.id}
			<f:form.hidden value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" />
		</div>
	</div>
	<div class="row">
		<div class="col-sm-2">
			<label class="control-label">
				<f:translate key="makeconfig_tree" />
20
				<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeDisplay" />
21
22
23
24
25
26
27
28
29
30
31
32
33
34
			</label>
		</div>
		<div class="col-sm-10">
			<f:if condition="{treeHTML}">
				<f:then><f:format.raw>{treeHTML}</f:format.raw></f:then>
				<f:else><f:translate key="makeconfig_noTreeExportedOnly" /></f:else>
			</f:if>
		</div>
		<f:form.hidden value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" />
	</div>
	<div class="form-group">
		<label for="impexp-pagetree-levels">
			<f:translate key="makeconfig_levels" />
		</label>
35
		<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeMode" />
36
37
38
39
40
41
		<f:form.select class="form-control" name="tx_impexp[pagetree][levels]" id="impexp-pagetree-levels" options="{levelSelectOptions}" value="{inData.pagetree.levels}" />
	</div>
	<div class="form-group">
		<label for="impexp-pagetree-includetables">
			<f:translate key="makeconfig_includeTables" />
		</label>
42
		<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeRecordLimit"/>
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		<f:form.select class="form-control" name="tx_impexp[pagetree][tables]" id="impexp-pagetree-includetables"
									 options="{tableSelectOptions}" multiple="multiple" value="{inData.pagetree.tables}"
									 size="{f:if(condition: '{tableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
	</div>
	<div class="form-group">
		<label for="impexp-pagetree-maxnumber">
			<f:translate key="makeconfig_maxNumberOfRecords" />
		</label>
		<f:form.textfield class="form-control" name="tx_impexp[pagetree][maxNumber]" id="impexp-pagetree-maxnumber" value="{inData.pagetree.maxNumber}" />
	</div>
</f:if>
<f:if condition="{records -> f:count()} > 0">
	<h4>
		<f:translate key="makeconfig_exportSingleRecord" />
		<f:be.buttons.csh table="xMOD_tx_impexp" field="singleRecord" />
	</h4>
	<div class="row">
		<div class="col-sm-2">
			<label><f:translate key="makeconfig_record" /></label>
		</div>
		<div class="col-sm-10">
			<f:for each="{records}" as="record">
				<f:format.raw>{record.icon}</f:format.raw>
				{record.title}
				<f:form.hidden name="tx_impexp[record][]" value="{record.tableName}:{record.recordUid}" />
				<br />
			</f:for>
		</div>
	</div>
</f:if>
<f:if condition="{tableList -> f:count()} > 0">
	<h4><f:translate key="makeconfig_exportTablesFromPages" /></h4>
	<div class="row">
		<div class="col-sm-2">
			<label>
				<f:translate key="makeconfig_tablePids" />
79
80
				<f:be.buttons.csh table="xMOD_tx_impexp" field="tableList" />
			</label>
81
82
83
84
85
86
		</div>
		<div class="col-sm-10">
			<f:for each="{tableList}" as="table">
				<f:translate key="makeconfig_tableListEntry" arguments="{0: table.tableName, 1: table.iconAndTitle}" />
				<f:form.hidden name="tx_impexp[list][]" value="{table.reference}" />
				<br />
87
			</f:for>
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
		</div>
	</div>
	<div class="form-group">
		<label for="impexp-listcfg-maxnumber">
			<f:translate key="makeconfig_maxNumberOfRecords" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="tableListMaxNumber" />
		</label>
		<f:form.textfield class="form-control" name="tx_impexp[listCfg][maxNumber]" id="impexp-listcfg-maxnumber"value="{inData.listCfg.maxNumber}" />
	</div>
</f:if>
<h4><f:translate key="makeconfig_relationsAndExclusions" /></h4>
<div class="form-group">
	<label for="impexp-externalref-tables">
		<f:translate key="makeconfig_includeRelationsToTables" />
	</label>
103
	<f:be.buttons.csh table="xMOD_tx_impexp" field="inclRelations" />
104
105
106
107
108
109
110
111
	<f:form.select class="form-control" name="tx_impexp[external_ref][tables]" id="impexp-externalref-tables"
								 options="{externalReferenceTableSelectOptions}" multiple="multiple" value="{inData.external_ref.tables}"
								 size="{f:if(condition: '{externalReferenceTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
</div>
<div class="form-group">
	<label for="impexp-externalstatic-tables">
		<f:translate key="makeconfig_useStaticRelationsFor" />
	</label>
112
	<f:be.buttons.csh table="xMOD_tx_impexp" field="staticRelations" />
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
	<f:form.select class="form-control" name="tx_impexp[external_static][tables]" id="impexp-externalstatic-tables"
								 options="{externalStaticTableSelectOptions}" multiple="multiple" value="{inData.external_static.tables}"
								 size="{f:if(condition: '{externalStaticTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
</div>
<div class="form-group">
	<label for="checkShowStaticRelations">
		<f:form.checkbox name="tx_impexp[showStaticRelations]" id="checkShowStaticRelations" value="1"
										 checked="{inData.showStaticRelations} == 1" />
		<f:translate key="makeconfig_showStaticRelations" />
	</label>
</div>

<div class="form-group">
	<label class="control-label">
		<f:translate key="makeconfig_excludeElements" />
		<f:be.buttons.csh table="xMOD_tx_impexp" field="excludedElements" />
	</label>
	<p class="form-control-static">
		<f:if condition="{inData.exclude -> f:count()} > 0">
			<f:then>
				<f:for each="{inData.exclude}" key="key" as="value" iteration="index">
					<f:form.hidden name="tx_impexp[exclude][{key}]" value="1" />
					<f:if condition="{index.isLast}">
						<f:then>{key}</f:then>
						<f:else>{key}, </f:else>
					</f:if>
				</f:for>
				<label for="checkExclude">
141
					<input type="checkbox" name="tx_impexp[exclude]" id="checkExclude" value="1" />
142
143
144
145
					<f:translate key="makeconfig_clearAllExclusions" />
				</label>
			</f:then>
			<f:else>
146
					<f:translate key="makeconfig_noManuallyExcludedElementsYet" />
147
148
149
			</f:else>
		</f:if>
	</p>
150
151
152
153
154
155
	<p class="form-control-static">
		<label for="checkExcludeDisabled">
			<f:form.checkbox name="tx_impexp[excludeDisabled]" id="checkExcludeDisabled" value="1" checked="{inData.excludeDisabled}" />
			<f:translate key="makeconfig_excludeDisabledElements" />
		</label>
	</p>
156
157
158
159
160
161
162
163
164
</div>

<div class="form-group">
	<f:form.submit class="btn btn-default" value="{f:translate(key: 'makeadvanc_update')}" />
	<f:form.hidden
				 name="tx_impexp[download_export_name]"
				 value="{nameSuggestion -> f:format.crop(maxCharacters: 30, append: '')}" />
</div>
</html>