Hi David
Is it possible to add the category mapping vertical. Here you can see i have manually added the categories on the page :
{link saved}
but as i have 28 subdomains would it be possible to do this with code and not me add them manually, that way if i change the mapping it will update the links without me going on and updating them manually.
thanks
Paul
Hi Paul,
To make a vertical menu of the category names from Category Mapping (linked to that category), have a go with something like this:
<?php
$sql = "SELECT * FROM `".$config_databaseTablePrefix."categories` ORDER BY name";
if (database_querySelect($sql,$rows))
{
print "<ul style='list-style: none;'>";
foreach($rows as $category)
{
print "<li><a href='".tapestry_indexHREF("category",$category["name"])."'>".$category["name"]."</a></li>";
}
print "</ul>";
}
?>
Cheers,
David.
--
PriceTapestry.com