Hey all,
I am integrating a blog on one of my websites, and I am having some issues displaying a tv that is using image+.
Currently, my getResources call to retrieve the information from the Blog (which is a Collection) is the following:
[[!getResources? &parents=`7` &includeContent=`1` &tpl=`blog_posts` &includeTVs=`1` &limit=`0`]]
This line pulls 99% of the information I would like to from the blog post itself, but the tv with the blog cover does not go through correctly.
My blog_posts tpl is the following:
<div class="blog_post">
<a href="[[+id]]">
<div class="blog_cover">
[[+tv.blog_cover]]
</div>
<div class="blog_date">
<div class="blog_month">
[[+publishedon:strtotime:date=`%b`]]
</div>
<div class="blog_day">
[[+publishedon:strtotime:date=`%d`]]
</div>
</div>
<div class="blog_information">
<div class="blog_title">
[[+pagetitle]]
</div>
<div class="blog_author">
[[+tv.blog_author]]
</div>
<div class="blog_content">
[[+content]]
</div>
</div>
</a>
</div>
The [[+tv.blog_author]] comes through correctly, but for the [[tv.blog_cover]], It comes through as a string of what I presume to be json code:
{ "sourceImg": { "src": "images/home/work_header.jpg", "width": 2000, "height": 350, "source": 1 }, "crop": { "x": 814, "y": 0, "width": 350, "height": 350 }, "targetWidth": 0, "targetHeight": 0, "altTag": "city buildings" }
I have tried a multitude of different things to get this working, but every google search has not produced any progress for me thus far.
Any ideas?
Thanks for your help!