Widget API Jobs
Widget API Jobs
The JOBS function of the Widget API is called on to the target page with an HTML <div>
element. It carries a number of data properties that control and filter the results being displayed.
Those results are represented in an HTML table with the following columns:
- Job Vacancy
- Category (industry)
- Subcategory (area of interest)
- Location – suburb/town
- Region – broad regional area
- Type – full time, part-time, school-based
An example is shown below:
<div class="apprenticeship-central-jobs"
data-employer="246"
data-region="gold-coast"
data-limit="2"
data-page="/job/detail/">
</div>
The key element that drives the process is the class="apprenticeship-central-jobs"
attribute and it must be present for the API to function.
Data Properties
data-employer
– the employer property holds the ID of the Apprenticeship Central employer whose jobs should be displayed. This property is required.data-region
– the region property holds the region “slug”, which is a URL-friendly version of the region name. There is complete list of region slugs here. This property is optional.data-type
– the page property holds the type_id that represents the employment type. 1 = full-time, 2 = part-time and 3 = school-based. This property is optional.data-limit
– the limit property controls the number of results returned. This property is optional and strongly advised if the list is likely to be long.data-exclude
– the exclude property is a comma separated list of fields to exclude from the table returned. The internal field names which are used in this property can be found here.data-page
– the page property holds the URL of the page that will display the specific job detail. Relative URLs are recommended. This property is required.
Next: JOB DETAIL
Back to the Overview