Skip to content

Commit

Permalink
Merge pull request #12 from maikschneider/release-2.2.0
Browse files Browse the repository at this point in the history
release 2.2.0
  • Loading branch information
github-actions[bot] committed Feb 27, 2023
2 parents 206bbbf + 8192a0e commit f53a8be
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 48 deletions.
42 changes: 0 additions & 42 deletions Classes/ViewHelpers/CycleViewHelper.php

This file was deleted.

1 change: 1 addition & 0 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'size' => 60,
'max' => 255,
'eval' => 'trim',
'placeholder' => 'LLL:EXT:bw_static_template/Resources/Private/Language/locallang.xlf:beTemplate.default',
],
],
];
Expand Down
Binary file removed Documentation/Images/Example.png
Binary file not shown.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,31 @@ Enter valid JSON:
"persons": [
{
"name": "Markus Mustermann",
"contactUid": 3
"contactPid": 3
},
{
"name": "Paul Werner",
"contactUid": 4
"contactPid": 4
}
]
}
```

Now you can use the given data in your template, e.g.:

```
```html
Hello {templateMarker1}!

<f:for each="{persons}" as="person">
Say hello to <f:link.page pageUid="{person.contactUid}">{person.name}</f:link.page>
Say hello to <f:link.page pageUid="{person.contactPid}">{person.name}</f:link.page>
</f:for>
```

### Optional: Select images

The selected images are accessible as **FileReference** via ```{files}``` marker.

```
```html
<f:for each="{files}" as="file">
<f:image image="{file}" />
</f:for>
Expand Down Expand Up @@ -130,4 +130,4 @@ This extension was made by Maik Schneider: Feel free to contribute!

* [Github-Repository](https://github.com/maikschneider/bw_static_template)

Thanks to [blueways](https://www.blueways.de/) and [XIMA](https://www.xima.de/)!
Thanks to [blueways](https://www.blueways.de/) and [XIMA](https://www.xima.de/)!
3 changes: 3 additions & 0 deletions Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<trans-unit id="beTemplate">
<target>Backend Vorschau</target>
</trans-unit>
<trans-unit id="beTemplate.default">
<target>Standard</target>
</trans-unit>
<trans-unit id="templatePalette">
<target>Templates</target>
</trans-unit>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<trans-unit id="beTemplate">
<source>Backend preview</source>
</trans-unit>
<trans-unit id="beTemplate.default">
<source>Default</source>
</trans-unit>
<trans-unit id="templatePalette">
<source>Templates</source>
</trans-unit>
Expand Down

0 comments on commit f53a8be

Please sign in to comment.