Hi, I've been trying for a while to change this particular thing in indexU.
In the first page where you get the list of categories with a number of subcategories beneath them, I want instead of subcategories to get some links (which exist in the main category and its subcategories.)
I'm working on the category.class.php in the lib folder. Around line 534 where the "get subcategory" title is. (I assume that is is the correct part of the code).
I thought of changing the code there and instead of asking for data from category and category_path, to ask for data from category and link, and keeping the rest of the code more or less the same to make as few changes as possible.
So I have the first part of the code looking something like this: (I've made it as generic as possible)
if ($this->show_subcat) {
$query = "select *
from idx_link
left outer join idx_category on (idx_link.category_id = idx_category.category_id)
where idx_category.parent_id = '$cat_id' and idx_category.visible = 1
order by idx_link.hits";
$result_sub = $dbConn->Execute($query);
$num_subs = $result_sub->RecordCount();
$j = 0;
while (!$result_sub->EOF && ($j < $this->number_of_subcats)) {
$sub_id = $result_sub->Fields("idx_category.category_id");
$sub_name = $result_sub->Fields("idx_link.title");
$sub_path = $result_sub->Fields("idx_link.url");
$result_sub->MoveNext();
of course it's not working...any suggestions?


