1

I'm new at Craft and I want to add new Entry into a jobs section. But I'm always receiving en error message.

{% extends '_layouts/site' %}

{% block body %}
    <div class="container">
    {% set company = entry.company %}
    {% set jobDescription = entry.jobdescription %}
    {% set jobRequirements = entry.jobrequirements %}
    {% set location = entry.location %}
    {% set salary = entry.salary %}
    {% set email = entry.email %}
    <span><strong>{{ company }}</strong> &nbsp; - &nbsp;{{ entry.postDate.rfc1123 }}</span>
    <br/>
    <br/>
    <span><strong>Description</strong><br/>{{ jobDescription }}</span>
    <span><strong>Requirements</strong><br/>{{ jobRequirements }}</span>
    <span><strong>Location</strong><br/>{{ location }}</span><br/>
    <span><strong>Contact us at</strong><br/> {{ email }}</span>
    <br/><span><strong>Salary</strong><br/>{{ salary }}</span>
    </div>
{% endblock %}
1

Just based on your screenshot, my guess is the settings for your entry type for your "Jobs" section has "Show the Title field" unchecked and you've set the "Title Format" setting to be "jobs".

I'm not sure if you unchecked that box on purpose, but if you re-check it, you can manually set the Title (which the slug is auto-generated from on new entries) on a per-entry basis.

  • I try to unchecked it and it display an 404 error message – lance adrianne dela cruz Apr 20 '17 at 6:07
  • What displays a 404 error message? Editing the entry? Saving it? Saving the section settings page? Maybe post a screenshot of your job section settings along with the entry type section settings? – Brad Bell Apr 20 '17 at 6:26
  • I tried to create another entry with the same details . I can create a new entry now but the problem is i'm having an error: "Variable "entries" does not exist" – lance adrianne dela cruz Apr 20 '17 at 6:45
  • I already edit my post . my code is already there – lance adrianne dela cruz Apr 20 '17 at 6:48
  • 1
    @lanceadriannedelacruz, please consider accepting Brad's answer if it solved your problem, and post separately if you have an entirely different question. – Matt Stein May 9 '17 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.