How can I use custom templates on a by category or award basis?
By default only two templates are included for formatting the award image. These are
But it is possible to use custom templates on a per category or award basis. To use custom templates instead of the default global templates follow the next steps:
Now create a custom template for such award as follows:
ougcawards_award_image_class and ougcawards_award_image, for CSS and image awards respectively.But it is possible to use custom templates on a per category or award basis. To use custom templates instead of the default global templates follow the next steps:
- Go to
Home » Manage Awardsand add or edit an award.
- Under
Template Typeselect theCustom Template (Advanced)option.
- Save
Now create a custom template for such award as follows:
- Go to
Home » Template Sets » [YOUR THEME] » Add Templateand add a new template using the following name schemes:ougcawards_award_imageX, whereXis the award id.
ougcawards_award_image_catX, whereXis the category id of that
- Within the templates content you can use any variables available in both the
ougcawards_award_image_classandougcawards_award_imagetemplates. Some examples of such variables are{$mybb->settings['bburl']},{$award['aid']},{$award['name']}, and{$award['image']}.