Results 1 to 1 of 1

Thread: links instead of subcategories.

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    Default links instead of subcategories.

    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?
    Last edited by crossbow; 05-07-2007 at 06:10 AM.

Similar Threads

  1. Replies: 1
    Last Post: 04-25-2007, 04:49 AM
  2. Replies: 4
    Last Post: 01-20-2006, 01:53 AM
  3. Sho subcategories in browse ?
    By Frank71 in forum v5.x
    Replies: 2
    Last Post: 10-06-2005, 03:48 PM
  4. Links and subcategories on one page
    By bdewijs in forum v3.2
    Replies: 0
    Last Post: 11-07-2004, 12:36 PM
  5. subcategories in subcategories
    By iokasti in forum v5.x
    Replies: 11
    Last Post: 08-24-2003, 09:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •