Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 91f0184

Browse files
committed
update documentation from typoscript
1 parent 419b44a commit 91f0184

File tree

1 file changed

+64
-5
lines changed

1 file changed

+64
-5
lines changed

rake/dkdeploy-typo3-cms/typoscript.md

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ when %r{(Configuration/TypoScript/Constants/Stages/config\.dev\.txt|Configuratio
4747
Uploaded htdocs/typo3conf/ext/dkd_customer/Configuration/TypoScript/Constants/config.txt to /var/www/typo3-cms-standard/htdocs/current/typo3conf/ext/dkd_customer/Configuration/TypoScript/Constants/config.txt.
4848
{% endhighlight %}
4949

50-
## upload\_pagets
50+
## upload\_
5151

52-
Uploads PageTS files from local paths prefixed by variable `copy_source`
52+
Uploads PageTS files from local paths prefixed by variable `copy_source`.
5353

5454
### Configuration
5555

@@ -105,7 +105,12 @@ set :typoscript_config_paths, 'typo3conf/ext/customer_extension/Configuration/Ty
105105
{% endhighlight %}
106106
The configured path should have a `Stages` sub-directory with stage-specific configuration files.
107107

108-
Example: `customer_extension/Configuration/Typoscript/Config/Stages/config.#{fetch(:stage)}.txt`
108+
Example:
109+
110+
{% highlight ruby %}
111+
customer_extension/Configuration/Typoscript/Config/Stages/config.#{fetch(:stage)}.txt
112+
{% endhighlight %}
113+
109114
If this path or `config.#{fetch(:stage)}.txt` does not exist, the task will be skipped for this path.
110115

111116
A project-wide configuration file with the default filename `config.txt` is created, this name can be configured:
@@ -119,6 +124,7 @@ set :typoscript_config_file, 'filename.txt'
119124
{% highlight shell-session %}
120125
cap <stage> typo3:cms:typoscript:merge_configs[:typoscript_config_paths,:typoscript_config_file]
121126
{% endhighlight %}
127+
122128
This task is called by merge_config_in_base_path, so you may not need to call it yourself.
123129

124130
### Output
@@ -155,8 +161,52 @@ TODO
155161

156162
Merges all stage-specific remote config files in a given base path into a project-wide configuration file by calling `merge_configs`.
157163

164+
Merge remote stage specific PageTS file into project-wide PageTS file.
165+
166+
158167
### Configuration
159168

169+
170+
Here is an example for a multistage PageTs:
171+
172+
{% highlight ruby %}
173+
set :typoscript_pagets_paths, 'typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf'
174+
{% endhighlight %}
175+
176+
The configured paths should have a `Stages` sub-directory with stage specific PageTs files.
177+
178+
Example:
179+
180+
{% highlight ruby %}
181+
dkdeploy_extension/Configuration/TypoScript/TSConf/Stages/PageTS.<StageName>.txt
182+
{% endhighlight %}
183+
184+
If path or `PageTS.<StageName>.txt` does not exists, task will be skipped for this path.
185+
186+
And a project-wide PageTS file with a default filename `PageTS.txt`.
187+
188+
You can configure your own filename:
189+
190+
{% highlight ruby %}
191+
set :typoscript_pagets_file, 'filename.txt'
192+
{% endhighlight %}
193+
194+
If project-wide PageTS does not exists, it will be created.
195+
196+
### Usage
197+
198+
You would usually use this task during development and deployment:
199+
200+
{% highlight shell-session %}
201+
cap <stage> typo3:cms:typoscript:merge_pagets
202+
{% endhighlight %}
203+
204+
It is recommended to upload pagets before:
205+
206+
{% highlight shell-session %}
207+
cap <stage> typo3:cms:typoscript:upload_pagets
208+
{% endhighlight %}
209+
160210
Variables:
161211

162212
{% highlight ruby %}
@@ -170,7 +220,7 @@ The default for `:typoscript_config_file` is `config.txt`, but may be modified:
170220
set :typoscript_config_file, 'filename.txt'
171221
{% endhighlight %}
172222

173-
The default for :typoscript_config_base_path` is .`, but may be modified:
223+
The default for `:typoscript_config_base_path` is `\.`, but may be modified:
174224

175225
{% highlight ruby %}
176226
set :typoscript_config_base_path, 'customer_extension'
@@ -182,6 +232,15 @@ set :typoscript_config_base_path, 'customer_extension'
182232
cap <stage> typo3:cms:typoscript:merge_config_in_base_path[:typoscript_config_base_path,:typoscript_config_file]
183233
{% endhighlight %}
184234

235+
185236
### Output
186237

187-
TODO
238+
{% highlight shell-session %}
239+
cap dev typo3:cms:typoscript:merge_pagets["typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf"]
240+
00:00 typo3:cms:typoscript:merge_pagets
241+
01 echo '' >> /var/www/dkdeploy/current/typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf/PageTS.txt
242+
✔ 01 [email protected] 0.005s
243+
02 cat /var/www/dkdeploy/current/typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf/Stages/PageTS.dev.txt >> /var/www/dkdeploy/current/typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf/PageTS.txt
244+
✔ 02 [email protected] 0.005s
245+
Merged /var/www/dkdeploy/current/typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf/Stages/PageTS.dev.txt with /var/www/dkdeploy/current/typo3conf/ext/dkdeploy_extension/Configuration/TypoScript/TSConf/PageTS.txt.
246+
{% endhighlight %}

0 commit comments

Comments
 (0)