In the Litework CMS, Page/Template Editors it is possible to insert special functionality using specific LW Codes. This is a summary of what each code does. The codes can be added to Pages and/or Templates by inserting the relevant code where you wish it to appear.
BASIC FORMS
/***LW_LOGIN***/
Will show a standard login form.
/***LW_REGISTER***/
Will show a standard registration form, except:
1. If the currently displayed page is register.php, it will show a login form instead.
2. If a candiate is logged in, then links to Candidate Options will be shown instead.
/***LW_QUICK_SEARCH***/
Displays a Default Job Search form with the following options: Keywords/Job Type, Sector, Location, Workhours, Worktype, Salary & Date Posted
/***LW_REGISTER***/
Displays a Default Candidate Registration form.
FORM COMPONENTS
/***LW_QUICK_SEARCH_KEYWORDS***/
/***LW_QUICK_SEARCH_JOBTYPE***/
/***LW_QUICK_SEARCH_SECTOR***/
/***LW_QUICK_SEARCH_LOCATION***/
/***LW_QUICK_SEARCH_REGION***/
/***LW_QUICK_SEARCH_WORKHOURS***/
/***LW_QUICK_SEARCH_WORKTYPE***/
/***LW_QUICK_SEARCH_SALARY***/
/***LW_QUICK_SEARCH_DATEPOSTED***/
These codes can be used as alternative to the Default Job Search form by specifying fields individually. Create your own form that posts to vacancysearch.php and add any of these tags to display those fields.
/***LW_REGISTER_NAME***/
/***LW_REGISTER_FIRSTNAME***/
/***LW_REGISTER_SURNAME***/
/***LW_REGISTER_WORKHOURS***/
/***LW_REGISTER_EMAIL***/
/***LW_REGISTER_TELEPHONE***/
/***LW_REGISTER_MOBILE***/
/***LW_REGISTER_STATUS***/
/***LW_REGISTER_COUNTRY***/
/***LW_REGISTER_SECTOR***/
/***LW_REGISTER_CV***/
/***LW_REGISTER_JOBALERTS***/
/***LW_REGISTER_CHECKFORM***/
These codes can be used as alternative to the Default Candidate Registration form by specifying fields individually. Create your own form that posts to register.php and add any of these tags to display those fields.
/***LW_LOGIN_EMAIL***/
/***LW_LOGIN_PASSWORD***/
These codes can be used as alternative to the Default Login form by specifying fields individually. Create your own form that posts to login.php and add any of these tags to display those fields.
PUBLIC PAGES / FEATURES
/***LW_RSS_FEED***/
Will fetch and display any RSS Feed. This tag must be inserted before and after the url of the Feed.
For example:
/***LW_RSS_FEED***/https://www.seagrass.co.uk/rss.php/***LW_RSS_FEED***/
will display the latest Seagrass News
/***LW_FEATURED_CLIENTS***/
Displays a list of the Clients specified as “Featured”, including logos if present. The actual No. shown is definable in the Configuration section.
/***LW_LATEST_JOBS***/
Displays a list of Vacancies (up to 7) matching the specified “Sector”. This tag must be inserted before and after the shortname (slug) for the sector you are displaying.
For example
/***LW_LATEST_JOBS***/aerospace/***LW_LATEST_JOBS***/
will display all Aerospace vacancies.
/***LW_FEATURED_JOBTYPES***/
Displays a list of the Job Types (up to 15) that have the most Active vacancies in them.
/***LW_FEATURED_SECTORS***/
Displays a list of the Sectors (up to 15) that have the most Active vacancies in them.
/***LW_FEATURED_SECTORS_TAGCLOUD***/
Displays a Tag Cloud of the Sectors (up to 15) that have the most Active vacancies in them.
/***LW_FEATURED_REGIONS***/
Displays a list of the Regions (up to 5) that have the most Active vacancies in them.
/***LW_SHARE_THIS***/
Displays the popular “Share This” social media bar wherever this tag appears.
/***LW_SITEMAP***/
Adds an automatic Sitemap page to your website. i.e. A visual hierarchical list of all pages in the CMS.
/***LW_ROLLING_NEWS***/
Displays a scrolling News Headline ticker. News Items and Display Options are setup in Configuration -> Manage Rolling News.
/***LW_QUICK_SHORTLIST***/
Displays the Candidates “Job Basket”, whilst they are applying for jobs on the Website.
/***LW_TOTAL_JOBS_CURR***/
/***LW_TOTAL_JOBS_CLIENTS_CURR***/
Display the current number of Active Jobs and Clients in the system.
/***LW_TOTAL_JOBS_LAST***/
/***LW_TOTAL_JOBS_CLIENTS_LAST***/
Display’s the previous year’s total number of Jobs filled (and the number of Clients involved).
/***LW_BREADCRUMB***/
Displays a Breadcrumb Trail, i.e. a Line of links from the Homepage down to the Current Page showing the visitor whereabouts in the website structure they currently are.
FEATURED JOB LISTINGS
/***LW_FEATURED_JOBS***/
Displays a list of the Active Vacancies specified as “Featured”.
/***LW_FEATURED_JOBS_LOOP***/
Displays Featured Jobs but without any formatting. Instead a widget called LW_FEATURED_JOBS_ITEM is used to specify the layout of each Job.
The LW_FEATURED_JOBS_ITEM widget should contain the html for a single list item, so should start with <li>and end with</li>.
Within this any html can be used in combination with the following field codes to display a Job’s details:
/***LW_VACANCY_JOBREF***/
/***LW_VACANCY_SLUGNAME***/
/***LW_VACANCY_SECTOR***/
/***LW_VACANCY_POSITION***/
/***LW_VACANCY_SALARY***/
/***LW_VACANCY_STARTDATE***/
/***LW_VACANCY_LOCATION***/
/***LW_VACANCY_SHORT_DESC***/
The normal way to implement the featured jobs is to create a widget with the code LW_FEATURED_JOBS which contains somewhere the code: <ul>/***LW_FEATURED_JOBS_LOOP***/</ul>
/***LW_FEATURED_STAR_JOB***/
Displays the single Vacancy specified as the Featured Star Job. A widget with this name can be created if you wish to add any html above/around the Featured Job.
A widget called LW_FEATURED_STAR_JOB_SECTION is used to specify the layout of this job.
The LW_FEATURED_STAR_JOB_SECTION widget can contain any of the following field codes:
/***LW_JOBITEM_POSITION***/
/***LW_JOBITEM_STARTDATE***/
/***LW_JOBITEM_DESCRIPTION***/
/***LW_JOBITEM_SECTOR***/
/***LW_JOBITEM_JOBREF***/
/***LW_JOBITEM_LOCATION***/
/***LW_JOBITEM_URL***/
VARIABLES
/***LW_WEBSITE_NAME***/
Displays the name of your Website, “Site Name” in the Advanced Configuation.
/***LW_PAGE_TITLE***/
Displays the current Page “Title” field.
/***LW_TEMPLATE_FILES***/
This tag can be used to reference any user-uploaded files. However most uploaded files such as Images, can simply be referenced using the “images” path.
For example <pre><img src=”images/my_picture.jpg” /></pre> will work fine.
/***LW_PAGE_URL***/
Displays the current Page “Url”.
/***LW_VACANCY_ID***/
Displays a hidden form field representing the Job a Candidate is currently Viewing/Applying for. Include this on your custom Login/Register Forms to ensure the Vacancy is remembered after logging in.
LOGGED IN PAGES / FEATURES
/***LW_CAND_STATUSCHECK***/
Usually only used on the “Logged In” Candidate Dashboard/Homepage. Displays various prompts to the Candidate as follows:
1. If Job Seeking Status is not ‘HOT’ display a button asking if they are still looking.
2a. If they a mid-way through a job application it shows a link to carry on the process.
or
2b. If a custom field section has been created with Candidate access enabled, a link to enter/update the information is shown.
or
2c. If the candidate has not uploaded their CV/Resume, they are asked to do it.
/***LW_CAND_NEWJOBS***/
/***LW_CAND_MSGS***/
/***LW_CAND_HISTORY***/
/***LW_CAND_INTVWS***/
Usually only used on the “Logged In” Candidate Dashboard/Homepage. Display the various lists of information for candidates.
/***LW_CLIENT_NEWJOBS***/
/***LW_CLIENT_NEWAPPS***/
/***LW_CLIENT_APPS***/
Usually only used on the “Logged In” Client Dashboard/Homepage. Display the various lists of information for clients.
/***LW_CANDIDATE_FIRSTNAME***/
If a Candidate is logged in this will display their First Name
/***LW_CLIENT_NAME***/
If a Client is logged in this will display their Name