@@ -204,68 +204,72 @@ import can be done in the template or the partial.
204204
205205.. _fluid-theme-example :
206206
207- Example: Using Fluid to create a theme
208- ======================================
207+ Example: Using Fluid to create a theme for a site package
208+ =========================================================
209209
210- This example was taken from the `example extension <https://github.com/TYPO3-Documentation/site_package/ >`__
211- for :ref: `t3sitepackage:start ` and reduced to a very basic example.
210+ This example was taken from a theme created by the
211+ `Site Package Builder <https://get.typo3.org/sitepackage/new/ >`_
212+ and reduced to a very basic example.
212213
213- The site package tutorial walks you through the creation of a site package
214- (theme) using Fluid. In our simplified example, the overall structure of
215- a page is defined by a layout "Default". We show an example of a three
216- column layout. Further templates can be added later, using the same layout.
214+ .. seealso ::
215+ * If you want to try this out, you can `Generate a site package with the
216+ official builder <https://docs.typo3.org/permalink/t3sitepackage:site-package-builder> `_.
217+ * The `Site package tutorial <https://docs.typo3.org/permalink/t3sitepackage:start >`_
218+ describes the usage of the templates step by step.
217219
218220.. directory-tree ::
219221 :show-file-icons: true
220222
221- * EXT: my_sitepackage/
223+ * packages/ my_sitepackage/
222224
223- * Configuration
225+ * Configuration/Sets/SitePackage/setup.typoscript
224226
225- * Typoscript
227+ * Resources/Private/PageView
226228
227- * setup.typoscript
229+ * Layouts
228230
229- * Resources
230-
231- * Private
231+ * PageLayout.html
232232
233- * Layouts
233+ * Partials
234234
235- * Page
235+ * Content.html
236+ * Footer.html
237+ * ...
236238
237- * Default.html
239+ * Pages
238240
239- * Partials
241+ * Default.html
242+ * Subpage.html
240243
241- * Page
244+ Set the Fluid base path with TypoScript using the
245+ `PAGEVIEW <https://docs.typo3.org/permalink/t3tsref:cobj-pageview >`_ TypoScript
246+ object.
242247
243- * Jumbotron.html
248+ .. literalinclude :: _Introduction/_pageview.typoscript
249+ :caption: packages/my_sitepackage/Configuration/Sets/SitePackage/setup.typoscript
244250
245- * Templates
251+ The template in file :file: `Pages/Default.html ` is automatically used whenever there is
252+ no specific template for the current `Backend layout <https://docs.typo3.org/permalink/t3coreapi:be-layout >`_ of the page.
246253
247- * Page
254+ .. literalinclude :: _Introduction/_Default.html
255+ :caption: EXT:my_sitepackage/Resources/Private/PageView/Pages/Default.html
248256
249- * ThreeColumn.html
257+ It includes the layout :file: `Layouts/PageLayout.html `. And uses partial
258+ :file: `Partials/Content.html ` to display its content.
250259
251- Set the Fluid paths with TypoScript using :ref: ` t3tsref:cobj-fluidtemplate `
260+ It uses the partial :file: ` Partials/Content.html ` to display its content.
252261
253- .. literalinclude :: _Introduction/_lib.dynamicContent.typoscript
254- :caption: my_sitepackage/Configuration/TypoScript/setup.typoscript
262+ .. literalinclude :: _Introduction/_Content.html
263+ :caption: Resources/Private/PageView/Partials/Content.html
255264
256- .. literalinclude :: _Introduction/_Default.html
257- :caption: EXT:my_sitepackage/Resources/Private/Layouts/Page/Default.html
265+ The template for a different backend layout will look similar, but has for
266+ example two columns:
258267
259- .. literalinclude :: _Introduction/_ThreeColumn .html
260- :caption: my_sitepackage/Resources/Private/Templates /Page/ThreeColumn .html
268+ .. literalinclude :: _Introduction/_Subpage .html
269+ :caption: my_sitepackage/Resources/Private/PageView /Page/Subpage .html
261270
262- * The template uses the layout "Default". It must then define all sections that the layout
263- requires: "Header", "Main" and "Footer".
264- * In the section "Main", a partial "Jumbotron" is used.
265- * The template makes use of column positions (colPos). The content elements for each section
266- on the page will be rendered into the correct `div `. Find out more about this in :ref: `be-layout `.
267- * Again, we are using Object Accessors to access data (e.g. `{colPos: '2'} `) that has been
268- generated elsewhere.
271+ The page layout takes care of elements that are shared across all or most page
272+ types:
269273
270- .. literalinclude :: _Introduction/_Jumbotron .html
271- :caption: Resources/Private/Partials/Page/Jumbotron .html
274+ .. literalinclude :: _Introduction/_PageLayout .html
275+ :caption: my_sitepackage/ Resources/Private/PageView/Layouts/PageLayout .html
0 commit comments