How To...

This section contains some step-by-step descriptions of how to carry out specific tasks using the Widget Framework. The examples are based on the following scenario:

  • Your publication has an existing section called Sports, based on a template called config.section.sports.

  • You want to add a new section under the Sports section called Tennis.

  • You want the Tennis section to have a slightly different layout to the other Sports sections, so you need to create a new template for it.

In order to achieve these objectives you need to:

  1. Create a new Tennis section (see Create a Section).

  2. Create a template defining the layout for your new section (see Create a Template).

  3. Edit the new template (see Edit a Template).

When you have carried out these tasks, add some content to your Tennis section and view the results in a browser. You should see that the Tennis section's layout is different from that of other Sports sections.