<div class="book-inspection"> Full=[[~[[+id]]? &scheme=`full`]] uniqueID=[[+id]] Right=[[~[[+id]]]] Left=[[~ ? &scheme=`full`]] imgURL=[[+tv.PropertyImageThumb:phpthumbof=`w=280&h=202&zc=1`]] </div>
<div class="book-inspection"> Full=http://test.com.au/index.php?id=579 uniqueID=579 Right=index.php?id=579 Left= imgURL=/assets/components/phpthumbof/cache/00799_01.04caac2880e1d09a4d65e6c091e1543417.jpg </div>
This question has been answered by multiple community members. See the first response.
imgURL=[[+tv.PropertyImageThumb:phpthumbof=`&w=280&h=202&zc=1`]]
[[++assets_url]]

[[FindTVs]]
$tvName='PropertyImageThumb';
$output = '';
/* Look in Resources */
$docs = $modx->getCollection('modResource');
foreach ($docs as $doc) {
$content = $doc->getContent();
if (strpos($content, $tvName) !== false) {
$output .= "<br>Resource: " . $doc->get('pagetitle');
}
}
unset($docs);
/* Look in Chunks */
$chunks = $modx->getCollection('modChunk');
foreach ($chunks as $chunk) {
$content = $chunk->getContent();
if (strpos($content, $tvName) !== false) {
$output .= "<br>Chunk: " . $chunk->get('name');
}
}
return $output;
Is this correct?
<?php
$options=explode(',',$options);
return count($options)>1 ? substr($input,$options[0],$options[1]) : substr($input,$options[0]);
?>
imgURL=[[++site_url]][[+tv.PropertyImageThumb:phpthumbof=`&w=280&h=202&zc=1`:substring=`1`]]
<!--DJP 23Jun16 Added new Book Inspection Button v16--> <div class="book-inspection"> <a target="_blank" href="https://book.inspectrealestate.com.au/Register?agentID=IRE-VJRAY&uniqueID=IRE-VJRAY-[[+id]]&imgURL=[[++site_url]][[+tv.PropertyImageThumb:phpthumbof=`&w=280&h=202&zc=1`:substring=`1`]]&Type=Rental"><a/> </div> <!--DJP End of new Inspection Button Update -->
