<div id="nieuws-viewer"> <div id="slider"> <ul> [[!getImageList? &tvname=`sidebar_viewer` &tpl=`viewerTpl` &where=`{"display:IN":"home"}` ]] </ul> </div> </div>
[ {"caption":"Eigenschappen van dit viewer item", "fields": [ {"field":"image", "caption":"Afbeelding", "inputTV":"sidebar_viewer_image"}, {"field":"title", "caption":"Titel"}, {"field":"description", "caption":"Omschrijving"}, {"field":"link", "caption":"Link", "inputTV":"sidebar_viewer_url"}, {"field":"display", "caption":"Weergave", "inputTV":"sidebar_viewer_display"} ]} ]
<li> <img src="[[+image]]" width="208" height="138" alt="[[+description]]"> <span><a href="[[+url]]"><strong>[[+title]]</strong><br />[[+description]]</a></span> </li>
<div id="nieuws-viewer"> <div id="slider"> <ul> <li> <img src="" width="208" height="138" alt=""> <span><a href=""><strong></strong><br /></a></span> </li> </ul> </div> </div>
case 'find': case 'find_in_set': $subject = explode(',', $subject); $output = in_array( $operand , $subject ) ? $then : (isset($else) ? $else : ''); break;
&where=`{"colors:find":"red"}`
Quote from: MokoJumbie at Feb 19, 2012, 05:12 PMI am having a problem (possibly) related to the one TomMLS is having. I submitted an issue on github about it.
the paths for file-based TVs are being prepended with './' so an expected path of 'image.jpg' is saved as './image.jpg'. The path is rendered on the front end as 'media_source/./image.jpg'
I'd be curious to know in TomMLS' case if the TV value containing the full URL is being generated by MIGX or due to some configuration issue.
Tom, can you tell us about the Media Source you are using for that TV? What are the baseUrl and basePath vaules, and is your modx install in your site root? Also, what kind of values are being generated by ImageTVs outside of MIGX? Are they full, absolute or relative paths?
do you have the same or a different result with image-TVs outside of MIGX and inside of MIGX ?
$o = implode($outputSeparator, $output);
if( is_array($output) ){ $o = implode($outputSeparator, $output); } else { $o = $output; }
$output = array()
if( is_array($output) ){ $o = implode($outputSeparator, $output); } else { $o = $output; }
This discussion is closed to further replies. Keep calm and carry on.