Hey all,
I have a bunch of problems using gallery, hope you can help.
i created a TV to display an image, like in the example. input: galleryitem, output: galleryitem.
First off, when I set the output to "galleryitem", below the output type dropdown I get this error:
Notice: Uninitialized string offset: 0 in /home/sibrand/public_html/modx/core/components/gallery/elements/tv/properties/galleryitem.php on line 49
The code there is a bit too abstract for me to know what's going on or how to fix it.
Moving on.
When I want to use this gallery+tv to attach an image to my blogpost, all is fine on the article page, the image shows up.
However, in a listing on the homepage, I have a list of recent blogposts and in the chunk used to display the item, there's the same TV to display the galleryimage.
But in this list, the image doesn't show up.
code of the listing template:
[[getResources?
&parents=`7`
&showHidden=`1`
&tpl=`article-grid-view`
&limit=`8`
&offset=`0`
&includeTVs=`1`
&processTVs=`1`
&tvFilters=`articlestags==%featured%`]]
chunk (article-grid-view):
<li class="panel grid_4">
<a href="[[~[[+id]]]]">
[[*blogimage]]
<h4>[[+pagetitle:ellipsis=`50`]]</h4>
<p>[[+introtext:default=`[[+introtext:ellipsis=`10`]]`]]</p>
</a>
</li>
In the settings for Articles, I have
Include TVs in listing and
process TVs in listing both set top YES.
How do I fix this?
[ed. note: dieomesieptoch last edited this post 11 years, 8 months ago.]