|
6 | 6 | ========================= |
7 | 7 | Additional subpage layout |
8 | 8 | ========================= |
9 | | - |
10 | | -Edit the file :file:`TwoColumns.html` in the same directory. Exchange the |
11 | | -main content area just as we have done before with the default template. Now |
12 | | -replace the content area of the sidebar with the content elements in the Fluid |
13 | | -variable :html:`{sidebarContent}`. |
14 | | - |
15 | | -You can compare your result to the example in our site extension: |
16 | | -`TwoColumns.html <https://github.com/TYPO3-Documentation/TYPO3CMS-Tutorial-SitePackage-Code/blob/main/Resources/Private/Templates/Page/TwoColumns.html>`_. |
17 | | - |
18 | | -.. contents:: |
19 | | - |
20 | | -.. _cm-switch_backend_layout: |
21 | | - |
22 | | -Switch to the two column layout with a sidebar |
23 | | -============================================== |
24 | | - |
25 | | -You can switch the used page backend layout in the page properties at |
26 | | -:guilabel:` Appearance > Page Layout > Backend Layout`. Edit the page |
27 | | -properties of your page to use the backend layout "Two Columns". |
28 | | - |
29 | | -.. include:: /Images/AutomaticScreenshots/SwitchBackendLayout.rst.txt |
30 | | - |
31 | | -After saving you will see that the content of the columns "main" and |
32 | | -"jumbotron" remains unchanged while there is a third column "sidebar". |
33 | | -This is due to the fact that the backend layout "Default" and "TwoColumns" |
34 | | -use the same colPos number for these columns. |
35 | | - |
36 | | -.. include:: /Images/AutomaticScreenshots/BackendLayoutTwoColumns.rst.txt |
37 | | - |
38 | | -Enter some content to the sidebar. You could for example use the content element |
39 | | -"Menu of subpages" to display a menu in the sidebar. |
40 | | - |
41 | | -Preview the page once more. A sidebar will appear in the frontend: |
42 | | - |
43 | | -.. include:: /Images/AutomaticScreenshots/TwoColumnsPreviewPage.rst.txt |
0 commit comments