Skip to content

Commit

Permalink
3. Add an custom backend preview for our new content element
Browse files Browse the repository at this point in the history
# PageTSConfig

You can add a custom backend preview for the page module,
just by setting the path to your fluid template in PageTSConfig!

Schema: mod.web_layout.tt_content.preview.the_ctype_of_you_content_element

# Fluid Template

The TYPO3 backend depends on bootstrap since TYPO3 7.6. Therefore
we can use common classes to add a grid to the backend preview of our
content element. All columns/properties of the content element are
available within fluid -> check the debug (line 8)

Voilà ツ
  • Loading branch information
josefglatz committed Oct 6, 2016
1 parent e62b58b commit 1cd93d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod.web_layout.tt_content.preview {
theme_tuga = EXT:theme/Resources/Private/Templates/Content/BackendPreview/TugaBackend.html
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<div class="row">
<div class="col-md-6">
{header}
</div>
<div class="col-md-6">
{_all -> f:debug(inline:1)}
</div>
</div>
</html>

0 comments on commit 1cd93d1

Please sign in to comment.