General Community > WebsiteBaker Website Showcase
Some sites i made two years ago (in a previous company :) )
mgeene:
Hoi,
Ik zie dat je op http://www.verastor.be/pages/producten/rolluiktoebehoren.php gebruik maakt van het catalog module script, hoe heb je de subnavigatie gemaakt, ik ben op zoek naar precies dit uitklap menu, maar het lukt me gewoon niet dit te realiseren.
Kan je me hiermee helpen?
Onderstaand de code in view.php:
--- Code: --- $query_cats = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_catalogs_cats` WHERE active='1' AND parent='$parent' AND section_id='$section_id' ORDER BY position ASC");
if($query_cats->numRows() > 0)
{
echo "<ul class='categorie'>";
while($cat = $query_cats->fetchRow())
{
$query_link = $database->query("SELECT link FROM ".TABLE_PREFIX."pages WHERE page_id = '".PAGE_ID."' LIMIT 1");
if($query_link->numRows() > 0) {
$fetch_link = $query_link->fetchRow();
$hasta=0;
while ($hasta!=$posiciones)
{
$hasta=$hasta+1;
}
echo "<li class='categorie'><a href=\"";
echo page_link($fetch_link['link']);
echo "?cat_id=".$cat["cat_id"]."\" >";
echo $cat['title'];
echo "</a></li>";
//echo "</ul>";
}
$query_sub_cats = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_catalogs_cats` WHERE active='1' AND parent=".$cat['cat_id']." AND section_id='$section_id' ORDER BY position ASC");
if($query_sub_cats->numRows() > 0)
{
$padre=$cat['cat_id'];
$nuevas_posiciones=$posiciones+1;
categories($database,$section_id,$padre,$nuevas_posiciones);
}
}
}
echo "</ul>";
}
--- End code ---
Alvast bedankt voor je reactie.
Groet,
Menno
Navigation
[0] Message Index
[*] Previous page
Go to full version