Hi all,
first of all this is my first project with MODx and I’d like to thank all for the great documentation / support. So far I could solve most of my problems by reading and "trail an error", but now I could use some help
I need the NewsListing snippet to show images on the summary page. I tried to add a new placeholder for a TV with an image inside. But I think I messed it up
I created a TV (type image) and tried to set up an new "placeholder" in the NewsListing snippet.
I added/changed some lines in the snippet.
[tt]
/**
* Snippet Name: NewsListing
* Short Desc: Displays News Articles and Blog Posts
* Created By: The MODx Project
* Version: 6.3.1
...
// ---------------------------------------------------
// Parameters
// ---------------------------------------------------
// added picture placeholder before summary text
$tpl = isset($tpl) ? $modx->getChunk($tpl):’
<div class="nl_summaryPost">
<h3><a href="[~[+id+]~]">[+title+]</a></h3>
<div>
[+picture+]
[+summary+]</div>
<p>[+link+]</p>
<div style="text-align:right;">by <strong>[+author+]</strong> on [+date+]</div>
</div>
’;
...
// ---------------------------------------------------
// Process information for display
// ---------------------------------------------------
...
// Post-processing to clean up summaries
$summary = closeTags($summary);
$summary = str_replace($commentschunk,’’,$summary);
// added this line at the end
$picture = $resource[$x][’picture’];
...
// ---------------------------------------------------
// Set Placeholders
// ---------------------------------------------------
// Set placeholders that can be used in the Chunk
// Set placeholders for backwards compadibility and custom fields
$placeholders[’[+title+]’] = $resource[$x][’pagetitle’];
$placeholders[’[+summary+]’] = $summary;
$placeholders[’[+link+]’] = $link;
$placeholders[’[+author+]’] = $author;
$placeholders[’[+date+]’] = strftime($date, $resource[$x][$datetype]);
$placeholders[’[+picture+]’] = $picture;
[/tt]
But no picture!
I have only "basic" understanding of PHP. Maybe I’m completely wrong with this

Does anybody can help me with this? Maybe there is already a solution for this, but I couldn’t find one inside the forum, so far.
Thanks for help!
Boris