Extension Point: Surf Extension Modules
Description:
This tutorial demonstrates how to customize the page footer web script template to add some extra text to the footer. The tutorial walks through how to find the related component and web script.
Implementation Steps:
It is often necessary to customize different parts of a Surf web script. This tutorial shows you how to customize the template for a web script. The approach looks something like this:
- Find the page component that corresponds to the content that should be changed.
- Identify the web script that is used to deliver the content.
- Identify what part of the web script need changing to achieve the customization, in this case the template.
- Create your customized version of the {web script id}.get.[html|json|..].ftl file.
- Use a Surf Extension module to define the web script override.
Related Information:
This tutorial assumes that you are familiar with the Spring Surf development framework.
Source Code: Go to code
This tutorial assumes you have created a new SDK All-In-One project.
Tutorial implementation steps: