I have an {entry.footer}
field outputting just fine everywhere before {% set entry... %}
Added {% endset %}
tags after closing anchor tag and caused an error. Any idea what the issue is?
{% extends "_layout" %}
{% block home_slider %}
{% include 'global/home-slider.html' %}
{% endblock %}
{% block content %}
<main id="main" role="main">
<div id="content">
<div class="holder-top">
<div class="holder">
<div class="text-wrap">
<div class="wrap">
{{ entry.body }}
</div>
</div>
<div class="three-columns">
<div class="wrap">
{% for block in entry.threeHomepageImages.type('images') %}
<div class="col">
<div class="image-block">
<div class="image">
{% if block.image|length %}
<a href="{{ block.pageLink.first().getUrl() }}"><img src="images/{{ block.image.first }}.jpg" alt="{{ block.alt }}"></a>
{% endif %}
</div>
</div>
<h1><a href="{{ block.pageLink.first().getUrl() }}">{{ block.imageTitle }}</a></h1>
</div>
{% endfor %}
</div>
</div>
<div class="btn-holder">
<div class="btn-wrap">
{% set entry = craft.entries.slug('get-a-quote').first %}
<a href="{{ entry.url }}" class="btn-quote">request a quote</a>
{% endset %}
</div>
</div>
</div>
</div>
<div class="holder-bottom">
<div class="quote">
{{ entry.footer }}
</div>
</div>
</div>
</main>
{% endblock %}
{% endset %}
. What error are you getting where?{% endset %}
I get the following error: Internal Server Error Unexpected tag name "endset" (expecting closing tag for the "block" tag defined near line 8) I added entire template code to original post.{% endset %}
, per Marion's suggestion below. Do you have Dev Mode enabled on your local site? What happens when you put{{ dump(entry) }}
after your{% set entry %}
tag?