Forum
Best App For Job Vacancy Page?
Hi everyone
I need to create a jobs vacancy page but not sure which app is best to use, Perch Blog or Perch Events? Or just a normal multi-item perch_content
template?
It needs to display the normal job title and description etc but also have an end date so it comes off the site after the end date.
My first thought was Perch Events but the /perch/templates/events/event.html
template doesn't seem to work in the same way other templates do?
I'm using Runway 3.0.12
Many thanks
It's not a blog and it's not a list of events, so neither of those seems suitable. I'd use a multiple item region.
Thanks Drew.
I think my plan of action is to create each vacancy as a subpage of
/vacancies
for the full details and then useperch_custom_content
to list them on/vacancies/index.php
.Glen
Hi Glen,
you're using Runway - why not use a collection and routing to give the impression of sub-pages.
Hi Glen, I agree with all above, Perch Content, list-and-detail, or Collections is a great way to do it.
I have created a few sites with vacancies in this way. I build a form into the vacancy template too that pulls the Job reference via a hidden field, so we know what job they're applying for when the form is submitted:
https://www.arthuredward.co.uk/available-roles/
https://www.spritesdental.com/vacancies
https://www.hfhcare.co.uk/vacancies
I haven't done them with 'Expiry date' but that should be easy with
perch_content_custom
filtering.Hi Duncan
I've started to use collections (for the first time ever!) for the vacancies page.
Everything seems to be pretty straightforward and working fine, the only thing is I'm not sure how to do the routing to link and display the subpages / vacancy details.
I've got my list of vacancies on the
/vacanices
page and usingfor the link to the vacany itself.
In the collection option, I've set the URL to
/vacancies/{position}-{office}
. but it's not generating a link all I'm getting is<a href="">
Does your collection template include a field with
id="slug"
?Hi Drew
Nope.
So I take it you have to add a field to the template for the URL manually and it's not generated automatically?
Ok, so I've gone down the multi-region route.
I've got all my vacancies listing nicely on the
/vacancies
page usingperch_content_custom
. But how do I now link to each multi-region item to a page which details the vacancy, for example/vacancies/[position]-{location}
Personally, I would use a list-detail (or Collections) approach here. Then, you can link through to each vacancy using a slug that is created automatically from one or more fields in your template.
More about slugs https://docs.grabaperch.com/templates/field-types/slug/
Hi Clive (and everyone)
Thanks very much. I'm now all up and running with the vacancies using collections.
I just have one problem with the
id="slugOffice"
with the townKing's Lynn
.The full URL is
/vacancies/{slug:slugH1}-{slug:slugOffice}
which outputs/vacancies/residential-conveyancing-lawyer-kings-lynn
.However, the slug isn't being passed correctly when viewing the vacancy/page. In debug it's processing as:
As as you can see it is splitting the
kings
andlynn
. Where an office is just one word, it works perfectly.I have also tried it without the apostrophe as it's doing the same.
Page template:
Full debug:
It's not the apostrophe causing the issue - it's the route
vacancies/[slug:slugH1]-[slug:slugOffice]
. It's being told to pick up the text after the-
asslugOffice
, but how does the route know which-
to pick it up from? It's using the last-
in the url, which is why it's only gettinglynn
. The issue is caused by the fact that the town has two words.Either change your options list to
King's Lynn|kingslynn
for example, or change your separator in the url -vacancies/[slug:slugH1]/[slug:slugOffice]
maybe.Thanks Duncan - I see.
Okay, so if I used
King's Lynn|kingslynn
how do I then echoKing's Lynn
as the value on the template?Reason for asking is that on the template I've got the office location mentioned a couple of times (taken from the select value) but want it to display as
King's Lynn
and notkingslynn
Would I reverse it via
replace="kingslynn|King's Lynn"
?Thank you
I'd probably not do that then - change the separator in the url instead...
Thanks Duncan
I would actually flip the order of items in the URL
so that you end up with
which feels like a more natural hierarchy.
You could then have
/vacancies/{slug:slugOffice}
as a listing page for vacancies per location.Thanks Drew.
Yes, I was thinking the same with regards to the hierarchy.