[[+pagetitle]]==[[+id]]
[[getImageList? &tvname=`product_info` &processTVs=`0` &tpl=`product_info_item_tpl`]]
[[+learn_more_page]]
[[+tv.learn_more_page]]
[[*product_info]]
[[getImageList? &tvname=`product_info`]]
[[*product_info]]
no, there shouldn't be a newline.
How do you fill the input-options?
{"field":"cp_product_page",
"caption":"Product Page",
"inputTVtype":"listbox",
"inputOptionValues":"@EVAL return $modx->runSnippet('getPageList',array('parents'=>'0','selector'=>'Learn'));"}
$parents = (!empty($parents) || $parents === '0') ? explode(',', $parents) : array($modx->resource->get('id'));
array_walk($parents, 'trim');
$parents = array_unique($parents);
$selector = (!empty($selector)) ? $selector : 'noop';
$paramsForGetResources = array(
'parents'=>implode(",", $parents),
'depth'=>'3',
'tpl'=>'cp_page_list_info_tpl',
'includeContent'=>'0',
'includeTVs'=>'1',
'showHidden'=>'1',
'limit'=>'25',
'sortby'=>'{"menuindex":"ASC"}',
'outputSeparator'=>'||',
'includeTVList'=>'cp_page_special_category',
'tvFilters'=>'cp_page_special_category=='.$selector,
'debug'=>'1'
);
$list = $modx->runSnippet('getResources', $paramsForGetResources);
return $list;
[[+pagetitle]]==[[+id]]
$paramsForGetResources = array(
'parents'=>implode(",", $parents),
'depth'=>'3',
'tpl'=>'@INLINE [[+pagetitle]]==[[+id]]',
'includeContent'=>'0',
'includeTVs'=>'1',
'showHidden'=>'1',
'limit'=>'25',
'sortby'=>'{"menuindex":"ASC"}',
'outputSeparator'=>'||',
'includeTVList'=>'cp_page_special_category',
'tvFilters'=>'cp_page_special_category=='.$selector,
'debug'=>'1'
);may be, you have newline in your tpl-chunk, what happens with:
$paramsForGetResources = array( 'parents'=>implode(",", $parents), 'depth'=>'3', 'tpl'=>'@INLINE [[+pagetitle]]==[[+id]]', 'includeContent'=>'0', 'includeTVs'=>'1', 'showHidden'=>'1', 'limit'=>'25', 'sortby'=>'{"menuindex":"ASC"}', 'outputSeparator'=>'||', 'includeTVList'=>'cp_page_special_category', 'tvFilters'=>'cp_page_special_category=='.$selector, 'debug'=>'1' );