How to show subcats of a specific category on a page? (in PHPLD 4.1)

Discussion in 'Directories' started by Nima, May 21, 2011.

  1. #1
    How can I show subcategories of a "specific" category on a page.

    For example if I want to show all top level categories only or all categories under /business/

    Thanks
     
    Nima, May 21, 2011 IP
  2. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #2
    If you look in main.tpl, there is a section called "show subcategories". That would be a good starting point for the code. You would just need to deal with specifying the id of the category business, and the count (number you want to show). There are a few more people hanging out in the phpLD forums that regularly code, and you might want to pose your question there as well.
     
    dvduval, May 21, 2011 IP
  3. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #3
    That is the part that i dont know. I did post my question on phpLD forums too. No repsonses there
     
    Nima, May 21, 2011 IP
  4. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #4
    What is your username over there? I will see if I can get someone to have a look.
     
    dvduval, May 21, 2011 IP