When you create a theme from scratch, you also have to link the templates to the theme. You can copy templates from another theme to your newly created theme. But you can also create new templates from scratch. We will create a new template in this recipe.
We can go on with theme 115 that we made in the first recipe, so make sure you already created this theme.
<table class="t115Region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# border="0" cellpadding="0" cellspacing="0" summary="" width="97%" style="border:none;"> <tbody class="ReportsRegion"> <tr> <th class="t115RegionHeader">#TITLE#</th> <th class="t115ButtonHolderHeader" width="100%">#CLOSE# #PREVIOUS##NEXT# #DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</th> </tr> <tr> <td class="t115RegionBody" colspan="2" bgcolor="lightgrey">#BODY#</td> </tr> </tbody> </table> [T115region.txt]
Substitution strings should be written in uppercase and should begin and end with a #-sign. As from APEX 4.0, new templates use the <div> tag. The older templates from APEX 3.2 and before used the<table> - <tr> - <td> tags.
You can make your newly created template the default template for that specific component type. Just go to the Shared components page, go to the themes, and select the theme you want to edit. On the right side of the screen, under Tasks, click Edit theme. You will see the component defaults. In the region list box, select the new template. Click the Apply changes button. The new template is now the default for the region component type.
18.191.176.194