Log in | Register | Lost password

Bottom
Parent-category title in listBrowser plugin
  • Posted: 16.09.2005, 18:05
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm at some bigger changes in the listBrowser plugin, made some listScat version that just shows the categories of the currently choosen parent category for some dynamic menu but still have a problem.
    I got icons made for all the subcategories too, those now are named "category_subcategory.png" and I want them all in one folder at my webspace of course.
    I changed the plugin so it can show the [subcategory-title].png in front of each list point but for that I would need to rename all the icons.
    Long speech short meaning: how can I get the parent-category name from the parent id, while being in the listBrowser?
    pnadminapi.php getlist only delivers:

    $items[] = array('id' => intval($result->fields[0]),
    'parentID' => intval($result->fields[1]),
    'title' => $result->fields[2],
    'fullTitle' => $result->fields[3],
    'value' => $result->fields[4],
    'description' => $result->fields[5],
    'lineno' => intval($result->fields[6]),
    'indent' => intval($result->fields[7]));
    .
    Fulltitle includes the parent-category title but with some ":" and I just need the category title one level higher, not all.

Template courtesy of Designs By Darren.