User Contest
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
-- Summary --
Contest in Drupal 7 were built using custom entities as opposed to nodes as in
UGC. This allows us much more flexibility without the overhead of a node object.
The Contest module has three main entity type and each is fieldable providing a
much more flexible solution.
The workflow for Contests is as follows. An admin or editor creates a Contest
with the specified settings. Users then create entries which hold information
about the user and the entry. The user then attaches entry data to the entry.
Each entity is explained in detail below.
-- Configuration --
Contest Entity
This is the main entity type and settings here determine the way your Contest
will function.
Contest Types can be added at admin/structure/contests/contest-types. Like Nodes
each Contest Type can have unique fields associated with it. The module comes
with a Photo Contest Type by default.
Contest can be added at admin/content/contest/photo-contest. This link may
change depending on the Contest Types you have configured, but they can all be
accessed in the admin menu of the drop-down.
Contest Add/Edit
Entry Types defined the Contest Entry, and Contest Entry Data Types that are to
be associated to your contest. These types can be added or modified at
admin/structure/contests/contest-entry-types and
admin/structure/contests/contest-entry-data-types.
Contest Status determines whether or not users are allowed to submit new entries
to this Contest. Number of Entries per Submission is as it sounds and determines
the number of Contest Entry Data that can be attached to a Contest Entry. e.g.
You are creating a Photo Contest and would like to allow 2 Pictures per
submission. You would change this to 2.
Additional Pages allows you to add additional pages to your Contest e.g.
Prize, Rules. This allows you to create a page inside without have to create a
node and then link it with a node reference. These pages also show up in a menu
in your contest header allowing user easy access.
Once the Contest is saved and you try to edit it you will notice a new section
under additional pages called Contest Menu. This section allows you to add,
edit, reorder and hide links associated with this Contest. Default and Contest
specific links cannot be deleted so be sure to hide them you don’t want them
visible to the user.
If the Contest Vote module is enabled you will see another section entitled Vote
Settings. This allows you to define different voting periods and the user roles
that are allowed to vote in each. Voting results are shown on the results tab of
the Contest.
Contest Entry Entity
The Contest Entry Entity hold information about the entering the contest and any
other default information specific to this entry. e.g. First Name, Last Name,
Email. As stated this module allows for the creation of multiple Contest Entry
types which can be modified at admin/structure/contests/contest-entry-types.
Its also important to note that the Contest Entry Entity is only viewed by admin
and should never be accessible to the user.
Contest Entry Data Entity
The Contest Entry Data Entity is what holds the data for the Contest Entry. e.g.
In a Photo Contest the Contest Entry Data would be the Images. Once again as
previously stated this module allows for the creation of multiple Contest Entry
Data types which can be modified at
admin/structure/contests/contest-entry-data-types.
User’s have the ability to vote on the Entry Data based on the Voting Periods
defined on the Contest Entity itself. Votes are then tallied based upon period
and presented in the voting tab on the Contest.
