Modx Evo CMS上的网站。我尝试使用DocLister和Ditto,但没有一个显示图像。这是tv [image-blog]的块代码:
<div class="entry-img">
<a class="img-popup" href="[+url+]">
<img src="[*image-blog*]">
</a>
</div>
[[Ditto? &tpl=`article_tpl` &parents=`2` ]]
[[DocLister?
&idType=`documents`
&tpl=`article_tpl`
&tvList=`image-blog`]]
[(rb_base_url)] - /assets,
[(rb_base_dir)] - [(base_path)]assets/
<base href="[(site_url)]"/> is included in head.
找不到另一个在页面上看不到图片的原因..
我找到了问题所在。也许它会对其他人有用:)我让tpl代码看起来像这样:
<img src="[+tv.image-blog+]">
和DocLister一起工作!大家好日子;-)