1. Subject: Templating - Template Definition
    The 'Template Definition' is the foundation of Magnolia's templating, thus it is important to know what a 'Template Definition' is.
    What is a 'Template Definition'?
    A - A Template Definition determines how a page & area & component node can be rendered or edited.
    B - A Template Definition functions as the site-wide configuration for all existing JCR nodes.
    C - A Template Definition creates a template with a page and an area determining the layout of a webpage.
    D - A template definition gives a template a name, makes it available to the system and functions as a script for rendering.
    Correct answer: A


  2. Subject: Templating - Template Definition
    What is the purpose of a template definition?
    A - The single configuration defining everything needed to render and edit a template.  
    B - The single configuration defining what data is stored for a template. 
    C - The single configuration defining where the template itself can be used. 
    D - The single configuration defining prototypes of webpages.
    Correct answer: A

  3. Subject: Templating - Template Definition
    A template definition determines how a page or component can be rendered.
    What exactly are the two mandatory properties every page or component definition need?
    A - 'templateScript' and 'renderType'
    B - 'modelClass' and 'templateScript'
    C - 'templateScript' and 'type'
    Correct answer: A

  4. Subject: Templating - Template Definition
    To link a template definition to its dialog you need to add a 'dialog' property.
    What is the correct value to reference a dialog?
    A -  travel-demo:pages/homePageProperties
    B -  /travel-demo/dialogs/pages/homePageProperties.yaml
    C -  /modules/travel-demo/dialogs/pages/homePageProperties
    Correct answer: A

  5. Subject: Templating - Template Definition
    In defining an area, the area type is 'list' by default. However, there are two more area types that you can configure in the area definition instead of 'list'.
    What are the other two possible 'type' values?
    A - single, noComponent
    B - autoGenerating, single
    C - multipleComponents, inhertiable
    Correct answer: A

  6. Subject: Templating - Template Definition
    What is the purpose of the 'availableComponents' node in an area definition?
    A - Defines the components that can be added into the area.
    B - Defines the tools which the area can use.
    C - Defines all components that are auto-created in the area.
    Correct answer: A

  7. Subject: Templating - Template Definition
    In Magnolia, every template needs to be defined.
    Where is a template definition registered in a light module?
    A - In the 'templates' folder of the light module.
    B - In the 'definitions' folder within the light module.
    C - Template definitions are registered via meta tags in WEB-INF/META.
    D - In 'templates' node or folder in any workspace except 'website' or within a light module.
    Correct answer: A

  8. Subject: Templating - Template Definition
    The code below is an example of:

    title: test-page templateScript: /test-module/templates/pages/test-page.ftl renderType: freemarker

    A - YAML template definition
    B - Exported JCR template definition
    C - YAML dialog definition
    D - Template script
    Correct answer: A

  9. Subject: Templating - Template Definition
    The components the author can choose from when adding a new component is defined where and by which property?


    A - In the area definition and through the availableComponents property.
    B - In the page definition and through the availableComponents property.
    C - In the site definition and through the availableComponents property.
    D - In the component definition and through the availablility property.
    Correct answer: A


  10. Subject: Templating - Template Definition
    You are tasked to configure several areas such as main area and footer area for a page.
    Generally, where should such an area be defined?
    A - Inside the page definition.
    B - Inside the page's component definitions.
    C - Within the page's dialog.
    D - Within the module's 'areas' registry.
    Correct answer: A

  11. Subject: Templating - Template Definition
    What is the purpose of the 'type' property in an area definition?
     A -  The 'type' property defines basically the amount of components that can be added to the area.
    B - The 'type' property defines the different types of components that can be added to the area.
    C - The 'type' property defines the type of the page it can be added to.
    Correct answer: A

  12. Subject: Templating - Template Definition
    Based on the specifications given to you, all of the components of the footer area must be inherited from the top-level page.
    How will you do this efficiently in your area definition?
    A - Simply add the inheritance property, set enabled property to true and have a components = all property.
    B - Add inheritable=true to each of the component that will be inherited.
    C - Use the components = filtered property so that only the components of the footer area will be inherited.
    D - Copy and paste the area definition to other area definitions that need the inheritance.
    Correct answer: A

  13. Subject: Templating - Template Definition
    Which app enables you to see YAML-based template definition files?
    A - Resource Files App
    B - Configuration App
    C - Templates App
    Correct answer: A

  14. Subject: Templating - Template Definition
    Scenario: Your website is complete and ready to go live. However, there was a memo that some properties of the page template needs to be modified.
    Without having to look for the template and edit the template itself, how will you modify the properties?
    A - Through the definition decorator.
    B - Through the YAML includes.
    C - By overriding the template definition.
    D - By doing a hotfix on the file.
    Correct answer: A

  15. Subject: Templating - Template Definition
    In Magnolia 5.4.6+, how do you modify definitions without touching the Configuration App?
    A - Through Definitions Decorators.
    B - Through the file system.
    C - Through the Resource Files App
    D - By completely overriding the definition.
    Correct answer: A


  16. Subject: Templating - Template Definition
    In Magnolia 5.4.6, a new Magnolia mechanism has been introduced, the Definition Decorator.
    What exactly does the Definition Decorator allow you to do?
    A - It allows altering existing configured items, changing the properties and sub-definitions of an existing definition.
    B - It enables overriding definitions, merging identical properties.
    C - It makes it possible to hotfix component templates through the Resources Files App.
    D - It decorates templates by adding label and description.
    Correct answer: A

  17. Subject: Templating - Template Definition
    Try to analyze the paths. Which of the following is the correct path to decorate the Pages App definition?
    A - <your-light-module>/decorations/pages/apps/pages.yaml
    B - <your-light-module>/decorations/<your-light-module>/dialogs/pages/pages.yaml
    C - decorations/<your-light-module>/pages/apps/pages.yaml
    D - <your-light-module>/pages/apps/pages.yaml
    Correct answer: A

  18. Subject: Templating - Template Definition
    What is the purpose of a template's model class?
    A - A Java class containing the business logic and providing it via public methods to the template's script. 
    B - A Java class representing the template configuration as a bean. 
    C - A Java class defining the rendering process of the template.
    Correct answer: A

  19. Subject: Templating - Template Definition
    Which of the following is the template ID for a template configured at /hello/templates/pages/home.yaml?
    A - hello:pages/home
    B - yaml:hello/pages/home
    C - hello/pages/home.yaml
    Correct answer: A

  

  • No labels