Table of Contents |
---|
Goals
- To be able to decorate definitions
Results
- You will decorate the Pages App in AdminCentral with a new label
Tasks / Procedure
Visualize the goal.
Expand title Detailed steps The goal is to change the label of the Pages App to your own desired label:
Old label New label
Create the appropriate decorations path to the pages app definition:
Expand title Detailed steps Achieve this structure in your file system:
Decorate the Pages App definition.
Expand title Detailed steps - Open your newly created pages.yaml.
Paste the following:
Code Block language yaml theme Confluence label: Pages Changed
Info HINT: Try to define your own desired label.
Check your work.
Expand title Detailed steps When decorating apps, logging out from the Author Instance and either logging back in again or requesting the page with the query parameter
?restartApplication
is a necessary step.- Logout from your Author Instance and login again.
- Your Pages App label should be changed now:
Make your module dependents on the 'pages' module.
Expand title Detailed steps Info Understand: In a real project you should make your light module being dependent on the 'pages' module as you are decorating it.
Operate in the light module 'training-templating-essentials' in the file system.
Navigate to the module descriptor:
/training-templating-essentials/module.yaml
Add the dependency into the module descriptor:
Mgnl mini code snippet version: 5.5.7
dependencies:
training-templating-foundation:
version: 5.5.7/*
pages:
version: 5.5.6/*
- Try to change the icon on the Pages App (optional).
Page Turner | ||
---|---|---|
|