arman Posted June 29, 2015 Report Share Posted June 29, 2015 Hallo,ich bin euch sehr dankbar, wenn ihr mir bei meinem Problem hilft.im shop die Ausgabe von der DB und zwar alle products_id ausgegen werden. Irgendwie klappts nicht so richtig. Ich denke in der DB Abfrage fehlt noch was..phpinclude('/plugins/xt_meinplugin/classes/class.xt_meinplugin.php');$data_array = array('id'=> $id);$data_of_this_product=new xt_meinplugin($id);$list_array=$data_of_this_product->getBuildOfProductArray($data_array);$tpl_data = array ('meinplugin' => TEXT_MEIN_PLUGIN, 'test_array' => $test_list_array);// $page_data = $template->getTemplate('xt_meinplugin', $tpl, $tpl_data);$tpl = "meinplugin.html";$template = new Template ();$template->getTemplatePath ( $tpl, 'xt_meinplugin', '', 'plugin' );$page_data = $template->getTemplate( 'xt_meinplugin_smarty', $tpl, $tpl_data );.class xt_meinpluginfunction getBuildOfProductArray($id){ global $db, $xtPlugin, $language; // Hier liste aus DB auslesen für produkt mit ID $products_id define('TABLE_MEINPLUGIN','xt_plg_meinplugin'); $rs=$db->Execute( "SELECT products_id FROM ".TABLE_MEINPLUGIN." WHERE products_id = '".$id."'"); return ($rs);.html<div id="meinplugin"><div id="meinplugin" class="tabs"><p class="headline">{txt key=TEXT_MEINPLUGIN}</p>{$list_array}</div>{if $list_array !=''}{foreach name=aussen item=module_data from=$list_array} <li id="list_array{$module_data.id}" class="level{$module_data.level} {if $module_data.active} active{/if}"><a href="{$module_data.products_id}"><span class="no-image"></span></a>{/foreach}{/if}</div> Ausgabe im Frontend:Mein pluginproducts_idleider ohne Inhalterledigt. Danke Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.