I'm trying to loop through entries in specific sections and output Entry's: - URL - Title - Type - Asset's image - asset's URL - Section's name - Section's URL - Tag's name - Tag's URL
So far I came to this with having difficulties with section's URL and tags that belongs to relative entry.
{% set entries = craft.entries.section(['worldTechnology','worldTravel']) %}
{% for entry in entries %}
<div class="uk-width-medium-1-3">
<div class="uk-panel uk-panel-box uk-panel-box-primary">
<div class="uk-panel-teaser">
<a href="{{ entry.url }}">
<img class="uk-margin-bottom" src="http://cdni.wired.co.uk/1920x1280/k_n/London_5.jpg" alt="">
<h3 class="uk-h3 uk-text-center uk-margin-top uk-panel-header">{{ entry.title}}</h3>
</a>
</div>
<div class="uk-text-center">
<em>in</em>
<span class="uk-margin-small-left"><a href="{{ section.getUrl }}">{{ entry.section.name }}</a></span>
<span class="uk-margin-small-left">{{ entry.getType.name }}</span>
<ul class="uk-breadcrumb">
{% for tag in craft.tags.relatedTo(entries) %}
<li>
<a href="" class="uk-badge uk-badge-tag uk-badge-clean">
<i class="uk-icon-circle-thin uk-margin-small-right"></i>
{{ tag.title }}
</a>
</li>
{% else %}
<li>
No tags found
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endfor %}
I'm working on it only in evenings and I'm starting to like Craft and Twig. Hopefully some of you guys, will advice me or give me some direction to go after.
Thanks for viewing it.