Skip to content

Commit

Permalink
[FEATURE] Auto-discover record preview templates
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Sep 14, 2024
1 parent c567e2b commit 8d7314f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Configuration/Sets/BlogExample/page.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:blog_example/Configuration/TSconfig/Page/*.tsconfig'
5 changes: 5 additions & 0 deletions Configuration/TSconfig/Page/ContentElementPreview.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
record.preview.tt_content.paths {
1726287995 = EXT:blog_example/Resources/Private/Templates/Backend/Preview/Content/
}

mod.web_layout.tt_content.preview.header = EXT:blog_example/Resources/Private/Templates/Backend/Preview/Content/Header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

<f:debug>{_all}</f:debug>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<f:layout name="Default" />

<f:section name="Main">
<f:debug>{_all}</f:debug>
{record.uid}
<f:render partial="Header" arguments="{_all}" />
</f:section>

0 comments on commit 8d7314f

Please sign in to comment.