<p>Check out &quot;Dynamic Content&quot; in the &quot;Advanced Usage&quot; section of the Blitz docs:
<a href="https://putyourlightson.com/plugins/blitz#dynamic-content" rel="nofollow noreferrer">https://putyourlightson.com/plugins/blitz#dynamic-content</a></p>
<p>Thus can be done with:</p>
<pre><code>{{ craft.blitz.getTemplate('/template/name', { elementId: entry.id }) }}
</code></pre>

CC BY-SA 4.0
2020-10-06T11:52:54.697Z
Perfect. Thanks for this. I'll get to creating a partial with this in.
JMKelley
CC BY-SA 4.0
2020-10-06T06:31:35.773Z
2020-10-06T11:39:31.107Z
2020-10-06T11:39:31.107Z
Matthias Redl-Mann
<p>I have a Blitz Cache but the only bit of dynamic data on the page is a &quot;Follow&quot; button which changes depending on if you're following this entry. Looking at their docs, I don't see a way of not caching a certain section or button?</p>
<pre><code>{% if craft.follow.check({ elementId: entry.id }) %}
    &lt;span class=&quot;material-icons mr-2 md-18&quot;&gt;favorite&lt;/span&gt;Remove Brand&lt;/a&gt;
{% else %}
    &lt;span class=&quot;material-icons mr-2 md-18&quot;&gt;favorite_border&lt;/span&gt;Save Brand&lt;/a&gt;
{% endif %}
</code></pre>
<p>Is it possible to still make this dynamic?</p>

<templating><plugin-blitz>
Blitz Cache dynamic button
# Blitz Cache dynamic button

(Asked by: username_0 on 2020-10-04)

I have a Blitz Cache but the only bit of dynamic data on the page is a "Follow" button which changes depending on if you're following this entry. Looking at their docs, I don't see a way of not caching a certain section or button?
{% if craft.follow.check({ elementId: entry.id }) %}
    favoriteRemove Brand
{% else %}
    favorite_borderSave Brand
{% endif %}

Is it possible to still make this dynamic?

**Tags:** templating, plugin-blitz


---

## 1 answers

### Answer by username_1 on 2020-10-06. Score: 3 | Accepted answer

Check out "Dynamic Content" in the "Advanced Usage" section of the Blitz docs:
https://putyourlightson.com/plugins/blitz#dynamic-content
Thus can be done with:
{{ craft.blitz.getTemplate('/template/name', { elementId: entry.id }) }}

> **Comments:**
> **username_0**: Perfect. Thanks for this. I'll get to creating a partial with this in.  

---

