I use CMS Bolt
and it uses Twig
, template engine. I need to access the content created on a page above where CMS
is running.
Ex: Bolt installed in the blog folder; page to access and display the content is in the test, from "test / blog" location.
On the normal blog page I'm using these calls:
{% setcontent records = "entries/latest/2" allowpaging %}
{% for record in records %}
<div class="four columns thumb" style="margin-left: 0px; clear: both";>
{% if record.image!="" %}
<img src="{{ thumbnail(record.image, 100, 100) }}" alt="thumbnail" class="u-max-full-width">
{% endif %}
</div>
<div class="eight columns">
<small class="date">{{ record.datecreated|date("d.m.y") }}</small>
<p><a href="{{ record.link }}" class="footer_last_blog">{{ record.excerpt(75) }}</a></p>
</div>
{% endfor %}