Two answers have addressed the process for applying the results of a view and placing it in another view as a contextual filter. But I still face the problem of having dozens of content types with at least a dozen view content pane variations in each. Instead of directly linking each view to the related facts, I will need to have the any of my view1 content views pass its results to a single, separate 'related fact' view.
CONTENT TYPE SUB-CATEGORY RELATED FACT (nid)
Type 1 --------- General Info 101, 105
Specifications 103, 105
Inspections 102
Quality
etc...
Type 2 ----------General Info 101, 106
Specifications 102, 103
Cost factors 107
etc...
Would this be performed through hook_views_post_execute? The apiView1 finds a specific content type and contains various sub-category articles sorted by the value in a subcategory field. In addition it contains a node reference shows an argument of '&$view' so I assumefield for related facts. View one filters for a content type and a subcategory and has exposed fields for display and a hidded field with thte related fact reference nodes.
View2 filters for 'related fact' articles and contains a contextual filter set for nid (please confirm/correct/clarify) I could definealthough the hooksetting applies to call the "related-facts" view using the $view->result.URL)
FinallyUsing the code in Letharion's answer, I need to display this 'related facts' content as a content pane directed to the proper locationforeach loop in my page display. In my case thisline 6 is compiling a panel layout and when the URl callslist of the correct patharticle ID's, not the view is displayed inrelated fact id's (the articles hold a reference to related facts, but the panel-page content panerelated facts do not have a node reference to articles). The 'related facts' will be displayed in another pane on I need to extract the pagerelated fact id's from the facts field in each node. I can placehave included the view for 'related facts'facts field in the correct location using Panels UIView1 definition, but it is not clear it will havecannot find the correct content called this way,result since the correct arguments are placed bycommand dpm($node); has been crashing and I don't know where the hook_views_post_execute fromvalues are stored in the main content viewarray. Is
Since there a waywill be more than one View1 cloned for different content types I thought it may make sense to use hook_views_post_execute and have coded it as follows:
function mymodule_views_post_execute (&$sourceview) {
$nids = '';
foreach($sourceview->result as $node) {
$nids += $node->nid . ','; //I need field name for $node->facts
}
$nids = rtrim($nids, ',');
$view = views_get_view('get_related');
//dpm($nids); // Fatal error: Cannot unset string offsets...
$view->execute_display('panel_pane_1', array($nids));
}
Finally, I am not sure if I have to direct the hook_views_post_executedisplay of the view to be rendered in the desiredproper location or is this done simply by placing the related facts content pane? in the panel location through the Panels UI and let panels theming handle the rest.