Skip to content

Instantly share code, notes, and snippets.

@joekolade
Created April 8, 2023 14:17
Show Gist options
  • Save joekolade/ae81baf6dd77396249cb9dc1f1818dd1 to your computer and use it in GitHub Desktop.
Save joekolade/ae81baf6dd77396249cb9dc1f1818dd1 to your computer and use it in GitHub Desktop.
[Page with fluid templates]
page = PAGE
# page.typeNum = 123
page.10 = FLUIDTEMPLATE
page.10 {
templateName = TEXT
templateName.stdWrap {
cObject = TEXT
cObject {
data = levelfield:-2,backend_layout_next_level,slide
override.field = backend_layout
split {
# if backend_layout is set up in TS:
token = pagets__
# if backend_layout is set up in DB:
#token = frontend__
1.current = 1
1.wrap = |
}
}
ifEmpty = Default
}
layoutRootPaths {
#10 = EXT:###templateextension###/Layouts/
20 = EXT:###templateextension###/Layouts/
}
partialRootPaths {
#10 = EXT:###templateextension###/Partials/
20 = EXT:###templateextension###/Partials/
}
templateRootPaths {
#10 = EXT:###templateextension###/Templates/
#20 = EXT:###templateextension###/Templates/
}
variables {
#foo = bar
pagelayout = TEXT
pagelayout.data = levelfield:-2,backend_layout_next_level,slide
pagelayout.override.field = backend_layout
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment