$pathI = JPATH_ADMINISTRATOR . '/templates/' . $tpl['home'] . '/html/tpl_' . $templateStyleItem->name;
        $path_rootI = JPATH_ADMINISTRATOR . '/templates/' . $tpl['home'] . '/html';
        $tmplI = 'tpl_' . $templateStyleItem->name;
    } else {
        $pathI = JPATH_SITE . '/templates/' . $templateStyleItem->name;
        $path_rootI = JPATH_SITE . '/templates';
        $tmplI = $templateStyleItem->name;
    }
    $docI = CCK_Document::getInstance('html');
    $rparamsI = array('template' => $tmplI, 'file' => 'index.php', 'directory' => $path_rootI);
    include JPATH_LIBRARIES_CCK . '/base/list/list_inc_list_items.php';
    $infos = array('context' => '', 'params' => $templateStyleItem->params, 'path' => $pathI, 'root' => JURI::root(true), 'template' => $templateStyleItem->name, 'theme' => $tpl['home']);
    $doc->i_infos = $infos;
    $doc->i_params = $rparamsI;
    $doc->i_positions = $positions;
    $doc->i_positions_more = $positions_p;
    if (isset($positions2)) {
        $positions = $positions2;
        $positions_p = $positions2_p;
    }
} else {
    $fields = CCK_List::getFields_Items($search->name, $client, $access);
    $target_f = 'fields_list';
    $positions = array();
    $positions_p = CCK_List::getPositions($search->id, $client);
    include JPATH_LIBRARIES_CCK . '/base/list/list_inc_list_items.php';
}
// Finalize
$infos = array('context' => '', 'params' => $templateStyle->params, 'path' => $path, 'root' => JURI::root(true), 'template' => $templateStyle->name, 'theme' => $tpl['home']);
$doc->finalize('content', $search->name, 'list', $positions, $positions_p, $infos);
$data = $doc->render(false, $rparams);
// -------- -------- -------- -------- -------- -------- -------- -------- // Show Form
if ($preconfig['show_form']) {
    if (JCck::on('3.4')) {
        JHtml::_('behavior.core');
    }
    // Template
    $P = 'template_' . $preconfig['client'];
    $templateStyle = CCK_List::getTemplateStyle($search->{$P}, array('rendering_css_core' => $search->stylesheets));
    if (!$templateStyle) {
        $app->enqueueMessage('Oops! Template not found.. ; (', 'error');
        return;
    }
    $doc = CCK_Document::getInstance('html');
    // Positions
    $positions = array();
    $positions_more = CCK_List::getPositions($search->id, $preconfig['client']);
    // Template Override
    $tpl['home'] = $app->getTemplate();
    $path = JPATH_SITE . '/templates/' . $templateStyle->name;
    if ($preconfig['show_form'] > -1) {
        $path_root = JPATH_SITE . '/templates';
        $tmpl = $templateStyle->name;
        $rparams = array('template' => $tmpl, 'file' => 'index.php', 'directory' => $path_root);
    }
}
// -------- -------- -------- -------- -------- -------- -------- -------- // Prepare Search
// Validation
if (JCck::getConfig_Param('validation', 2) > 1) {
    $lang->load('plg_cck_field_validation_required', JPATH_ADMINISTRATOR, null, false, true);
    require_once JPATH_PLUGINS . '/cck_field_validation/required/required.php';
}