SPEAK Structure rendering creates a structure/layout for the SPEAK applications.
There are mainly four types of Structure renderings,
- DashboardPageStructure
- ListPageStructure
- TaskPageStructure
- DialogPageStructure
NOTE: There are 3 more Lagecy Structures available in Sitecore 9.3. These structures might get removed in next versions of Sitecore.
1. DashboardPageStructure & ListPageStructure
The DashboardPageStructure requires a SPEAK-FlexLayout. This structure also include the content layout of the page. That means as compared to the previus version LagecyDashboardPageStructure , it does not require any further substructure component such as ApplicationContentNM for example.
The layout content provides 3 placeholders: Navigation, Content and Context.
The Navigation and Context areas will not be displayed if no content is assigned to them.
The layout exposes the following placeholders:
- GlobalHeader
- Navigation
- ApplicationHeader
- Content
- Context
2. TaskPageStructure
The TaskPageStructure also requires SPEAK-FlexLayout.
This layout exposes following placeholders,
- GlobalHeader
- ApplicationHeader
- Content
- Context
So, removing the Navigation placeholder from DashboardPageStructure (or ListPageStructure) makes it TaskPageStructure in above wire frame.
The Context area won't be visible when no content is assigned to it.
3. DialogPageStructure
Example App Continuation...
Let's add DashboardPageStructure to our example app from previous article,
- Right click on the DemoSpeakApp item and open layout details wizard.
- Click on Add Rendering button and search for DashboardPageStructure rendering and select DashboardPageStructure and click OK.
- Make sure the DashboardPageStructure is added in Page.Body placeholder.
- Save the layout of the page and browse the app in browser. You should see the structure is added on the page and a black header strip.
- If you want to hide the header strip, DashboardPageStructure has a rendering property IsHeaderHidden. You can set this property to True to hide this header strip.
E.g., when you drop DashboardPageStructure on any SPEAK page, it will go straight into Page.Body placeholder because this placeholder is specified as the default placeholder on DashboardPageStructure rendering item.
No comments:
Post a Comment