1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 19:20:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/customising/Alternative page layouts.tid

15 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-24 21:38:18 +00:00
created: 20201123172925848
2024-06-06 16:15:41 +00:00
modified: 20230803052005116
tags: [[Customise TiddlyWiki]]
2020-11-24 21:38:18 +00:00
title: Alternative page layouts
type: text/vnd.tiddlywiki
<<.from-version "5.1.23">> You can have multiple alternative page layouts and switch between them. To see a list of available layouts and switch between them, use the keyboard shortcut <kbd><<displayshortcuts ((layout-switcher))>></kbd>.
! Creating an alternative page layout
2024-06-06 16:15:41 +00:00
Creating an alternative layout goes beyond [[adding or removing features|Customising TiddlyWiki's user interface]] from the default interface and allows you to create an entirely new layout from scratch.
2020-11-24 21:38:18 +00:00
To create an alternative page layout and have the ability to switch to it, you need to create an alternative page template tiddler with the [[SystemTag: $:/tags/Layout]].
This alternative page template can either be a tweaked and modified version of the [[default page template|$:/core/ui/PageTemplate]], or something entirely different. The layout switching mechanism requires that your page template tiddler has the fields `name` and `description`, which are used in the listing in the switching user interface.