How To...
This section contains some step-by-step descriptions of how to carry out specific tasks using the Widget Framework. The first few examples are based on the following scenario:
-
Your publication has an existing section called
Sports
, based on a template calledconfig.default.section.sports
. -
You want to add a new section under the
Sports
section calledTennis
. -
You want the
Tennis
section to have a slightly different layout to the otherSports
sections, so you need to create a new template for it.
In order to achieve these objectives you need to:
-
Create a new
Tennis
section (see Create a Section). -
Create a template defining the layout for your new section (see Create a Template).
-
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.