We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48696
    • 41 Posts
    Hi, i've tried use Collections for blog instead of Articles...

    1) In "Collection views > Update view" I've "Add column" blog_image with renderer "Collections.renderer.image"
    2) In System Settings I've updated key "collections.renderer_image_path" to "{assets_url}/blog/"
    3) I created template variable "blogTV" for template "blog_template" which is editable in Collection

    After add image to blogTV in new document (collection child) and save I don't know why image is not shown in new blog_image collection Column in manager. And on website is blog also without images.

    Some reason, please?
      • 48696
      • 41 Posts
      Some additional info - for web solved thru blogTVurl which works in web context:

      blog_list_chunk
      <h1>[[+pagetitle]]</h1>
      <p>
      	[[+publishedon:strtotime:date=`%d.%m. %Y`]] | [[+introtext:notempty=`[[+introtext]]`]]
      	<br>
      	<img src="[[!getBlogTVurl? &idcko=`[[+id]]`]]" alt="">
      	[[getValuez? &class=`modResource` &field=`content` &where=`{"id":[[+id]]}`]]
      <p>


      getBlogTVurl snippet
      <?php
      $page = $modx->getObject('modResource', $scriptProperties['idcko']);
      return $page->getTVValue('blogTVurl');
      


      but in manager are not thumbs in blog_image column in collections sad
        • 48696
        • 41 Posts
        Is somebody here to hint?