Skip navigation
ocPortal Tutorial: Providing featured content
Written by Chris Graham, ocProducts
The Admin Zone provides a list of tasks, including rotation of featured content
|
There are a number of ocPortal systems that provide featured content, rather than archives of content, or actively worked-upon content. These systems are:
- the award system
- award holder display
- randomisation display
- content display
- image of the day
- random quotes
- polls (although these are covered in the 'Feedback' tutorial)
- flagrant text (although this is covered in the 'Points' tutorial)
This is a short tutorial briefly covering these systems, and featured content in general.
Benefits of providing featured content include:
- giving your site a 'fresh' feeling, and a feeling that it is an active site
- giving variety to your site, without much effort
- drawing users in, such that they regularly re-visit to see what new content is featured
- putting content in a prime position so as to draw attention to it, perhaps as a reward for the content creator, perhaps for its relevancy, or perhaps to recommend it
The obvious disadvantage of non-randomised featured content is the effort that is taken to maintain it. The Admin Zone provides a tool on your front page to assist with this, but it will only be able to do so if you regularly check it.
Awards
The award system allows you to select out content for featuring. It may be used in three ways:
- display of content assigned as the current holder of an award (via the main_awards block, or by browsing the awards page). An award must exist (create new awards in the 'Setup' section of the Admin Zone) before it can be assigned.
- random display of content in any arbitrary categories (via the main_content block) with full ocFilter support. No award needs to exist for this, as assignment is done via block parameters.
- display of any arbitrary item of content (via the main_content block). No award needs to exist for this, as assignment is done via block parameters.
Making an award
|
You may use the award system with any of the following types of content:
- authors
- calendar events
- catalogues
- catalogue categories
- catalogue entries
- CEDI pages
- CEDI posts
- comcode pages
- downloads
- download categories
- forum posts
- forum topics
- forums
- galleries
- images
- members
- news
- quizzes
- usergroups
- videos
So, why are are these awards so useful? Well, we find users often come to us wanting to be able to feature different entries of the same thing on their front page. For example, a boating club might have a catalogue filled with different types of yacht, and want to be able to have them shown on the front page.
Keeping this yacht example, I will now explain each of the three ways that the award system may be used.
Display of content assigned as the current holder of an award
Making a download as holder of the default 'Download of the week' award
|
If you wanted to choose a different yacht to display every week, for example, then you can just:
- create a catalogue award
- place the award block on the front page and set it to refer to the award you just made (the Block assistant will help you, accessible from the 'Add block' button on the Comcode page editing screen)
- change the 'Yacht of the week' just by editing a yacht's catalogue entry (or when you add an entry, make it 'Yacht of the week' immediately)
ocPortal has one award that is pre-created by default: Download Of The Week. This is provided because independent 'Download Of The Week' functionality was provided in ocPortal prior to the creation of the award system and subsequently dropped as an independent system.
Each award has its own archive, under the
points page. The archive is linked from the
main_awards block, but you could also add it to your menus if you wanted to.
You can configure the awards (when you add or edit the award itself) to carry a number of points. If you do this, the submitter of content given that award will be given some points, and that'll show up on their points profile.
Arbitrary randomisation display
If you do not want to go to the effort of creating an award and manually awarding content for it, then you can just use the '
main_content' block in randomisation mode. You get the choice of which categories you want to randomly display from by way of a 'filter' block parameter (written in ocFilter support syntax).
By doing this you use the award system without actually using an award.
Arbitrary content display
If you want to display a specific item of content as you require, but without actually wrapping it up in an actual award, then you may use the '
main_content' block with parameters to specify exactly what item you wish to display.
As with randomisation, this allows you to use the award system without actually using an award.
Using module screens as blocks
Whilst the '
main_content' block (see above) can show content within blocks, it is conceivable that you might want to display full module screens as if they were blocks. This is possible with the '
main_include_module' block.
For example:
Code
[block="_SEARCH:topicview:misc:1" striptitle="1" onlyifpermissions="0"]main_include_module[/block]
would show OCF topic #1 in a block, without running permission checks, and with the title removed.
Image of the day
Adding an IOTD
|
Choosing an IOTD
|
Images of the day ('IOTD') are images which are routinely rotated on your site. These are not images from the download or gallery systems - they are stored and managed separately.
IOTDs are on your front page by default. You can turn them off by removing the block from your front page if you wish (unless you already deselected using the Setup Wizard).
Often website users are the best source of IOTDs, and if you have granted submit access (configurable in the Permissions Tree Editor), they will be able to submit them into your queue.
The IOTD system does not manage IOTDs for you: you need to change IOTD yourself. To make this easy, we recommend that you keep on top of the IOTDs that users submit, deleting the poor ones, so as to make picking new ones straight-forward.
The IOTD block displays like this
|
To pick an IOTD, you select one from those shown on the IOTD queue page, editing it so as to 'use it immediately'. Old IOTDs may be browsed from the IOTD archive page, which is linked to from the IOTD block.
You may change 'of the day' to anything of your choosing by editing language strings in the ocPortal language editor (the 'iotds' language file).
If you do not wish to use both the IOTD and gallery systems on the same website then you may wish to drop the use of IOTDs in favour of an image award.
Random quotes
You may display random quotes on your website, via the 'main_quotes' block, which is provided on your front page by default (unless it was removed during the Setup Wizard). The Admin interface allows you to edit the default quotes file; the format of the file is very simple: one quote per line of file. You may actually have many random quote files, and use block parameters to use them in different places. To access quote administration, go to: Admin Zone, Style section, Random Quotes icon.
You will find that by default a selection of deep quotes are provided.
If block cacheing is on, quotes will be rotated on a daily basis.
Concepts
- IOTD
- [Image of the day]. An image and associated caption, generally shown on your front page, intended for regular changing
- DOTW
- [Download of the week]
- Award system
- A system for picking out content for prominent display. You do not necessarily have to create an award to use the award system
- Award
- Awards are created for a specific content type with specific details and then content of that content type may be given the award; past holders of the award are displayed in an archive
See also