Please note: This article is OTYS only, and can only be read by users that have logged in.
Important: Make sure to read the dev notes before updating (the dev notes are below the changelog on the bottom of this page). DEV notes describe code changes that may have an impact on the look & working of your website. Note that DEV notes require knowledge about development, if you don't understand the dev notes please contact your development party.
When updating to version 2.0.0 the application form will be reset to the default look and feel, if you have changed the look and feel of the application form, please make sure to contact your development party before updating.
Changelog
Shortcode [otys-vacancies-apply].
Added GDPR question when GDPR is setup for your client.
Improved layout.
The shortcode can now be used to display the application form on the vacancy detail page by adding the shortcode to the vacancy detail and adding the attribute vacancy-uid="$args['vacancy']['uid']".
<?php echo do_shortcode("[otys-vacancies-apply vacancy-uid={$args['vacancy']['uid']}]"); ?>The shortcode is now used for vacancy applications aswell.
The application page now works using ajax calls. This means the page will not refresh anymore when submitting the form, which improves the user experience.
[bugfix] Multiple notifcations emails will not happen anymore.
Improved error handling.
Improved styling.
The plugin relies on less database calls now which helps to improve performance for site with a slower or offsite database.
It's now possible to change the header fallback image in OTYS settings by going to OTYS -> Settings -> Vacancies; Under vacancy detail you'll have the setting 'Fallback header image'.
[bugfix] Special characters showing strange characters in motivation is now fixed.
[bugfix] Special characters showing strange chracters for extra fields question is now fixed.
When using vacancy search the search now searching in more vacancy fields.
Vacancy list results are now ordered on the publication date instead of the creation date.
Error when displaying [otys-vacancies-search] shortcode on a 404 page has been fixed.
When the plugin gets activated for the first time, default documents will be created by the plugin. The new documents created are using the new OTYS mergefields.
[otys-vacancies-list] sorting has been changed to publication date instead of creation date.
Candidates get assigned a language now based on the language they apply in.
When using UTM tags, the tags get added to both the candidate and the procedure. UTM tags will not be updated when the candidate is already known.
Now using home_url() instead of site_url() because of some WordPress installations changing the site_url() output.
DEV Notes
Shortcode [otys-vacancies-apply]
Because of the new update different templates are now used for the application detail pag and [otys-vacancies-apply] shortcode, these new templates are not compatible with the old templates and therefore the old templates are not used anymore. If you have overwritten the templates described as 'old files' below you'll most likely have to make adjustments to your code to make it look the same as before.
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-open-apply.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-open-apply.php[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-open-apply-success.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-open-apply-success.php
New files
[plugins-folder]/otys-jobs-apply/vacancies/apply/vacancies-apply-shortcode.php
[plugins-folder]/otys-jobs-apply/vacancies/apply/vacancies-apply-success.php
Templates for form files (include-parts)
The templates for the form fields have all been changed and are now within a different folder because the old ones are incompatible. The folder 'forms' has been renamed to 'rest-forms'.
All the input fields in these files now have a attribute id, this way the form fields can be linked to the form labels to improve the user experience.
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/include-parts/forms/field-*.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/include-parts/forms/field-*.php
New files
[plugins-folder]/otys-jobs-apply/app/views/include-parts/rest-forms/field-*.php
Vacancy application
Vacancy applications don't use the old files anymore and now use the shortcode [otys-vacancies-apply] aswell. If you've overwritten the vacancy-apply.php in your theme you'll have to make changes the new way. Within the new vacancy-detail.php the shortcode [otys-vacancies-apply] is used to show the application form.
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-apply.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-apply.php
New files
[plugins-folder]/otys-jobs-apply/app/views/vacancies/apply/vacancies-apply.php
Vacancy application callback
When a vacancy application happens a WordPress action 'otys_application' gets triggered containing the information regarding the application. This action can be used for example to trigger events via the backend. These events can for example be Google tracking events, using the Google analytics API.
Readmore: https://wordpress.otys.com/kb/guide/en/application-callback-SuySHaHT7o/Steps/2682225
Change header fallback image
Before the header fallback image was hardcoded in the plugin. This hardcoded image still remains, but you're able to overwrite this header by setting the setting 'Fallback header image'. If you've overwritten the vacancy-detail.php in your theme and you want to be able to use the setting do as described below.
In the vacancy-detail.php the hardcoded image url should be replaced with <?php echo esc_url($args['vacancy']['vacancyFallbackImage']) ?>. For reference check the new original vacancy-detail.php in [your-plugin-folder]/otys-jobs-apply/views/vacancies/vacancies-detail.php.