-
Notifications
You must be signed in to change notification settings - Fork 3
Subpages, sidebars and windows
thepian edited this page Apr 9, 2013
·
6 revisions
Subordinate page sources are loaded in Resolver("page::pages"). This can be done by configuration using
<script type="application/config">
loadPage("/pages/default-layout.html");
</script>
If you want to load a page into a document level element such as article,section,aside you can do so using role application, complimentary, main, dialog. In the config set the src.
<script type="application/config">
declare("main-stage",{
"src": "/pages/default-layout.html"
});
</script>
The benefits of using subpages is that roles and layouters can be configured within the subpage.
Note that subpage loading is different from the element it is used in. This allows subpages to be used in multiple elements.