Author Topic: Sub Categories View ?  (Read 4711 times)

0 Members and 1 Guest are viewing this topic.

Offline lona_jasty

  • Newbie
  • *
  • Posts: 44
    • View Profile
Sub Categories View ?
« on: June 27, 2008, 03:57:10 AM »
Hello Everybody !

I want some help, regarding Sub Category View here.



Is it possible to Open / Close Sub Categories by pressing button, I have made a screenshot for some more details, I will be very thankful , if someone will help me.

Waiting for help

Kind Regards

Offline VGerhard

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Sub Categories View ?
« Reply #1 on: November 22, 2011, 11:07:19 AM »
I want some help, regarding Sub Category View here.

Is it possible to Open / Close Sub Categories by pressing button, I have made a screenshot for some more details, I will be very thankful , if someone will help me.

Übersichtlichere Darstellung der Verzeichnis/Unterverzeichnis-Strukturen
Die Unterverzeichnisse werden bei der Standard-Installation unterhalb der übergeordneten Verzeichnisse fortlaufend - jeweils nur durch Komma getrennt - aufgelistet. Die Form der Darstellung hängt dann u.a. von der Länge der einzelnen Unterverzeichnis-Namen, der gewählten Spalten-Zahl sowie der vom User gewählten Bildschirmauflösung ab. Nach folgender Änderung werden die einzelnen Unterverzeichnisse - jeweils mit führendem "- " in separaten Zeilen unterhalb des übergeordneten Verzeichnis-Namens aufgelistet.

Suche in /includes/functions.php nach:

 $num_subs sizeof($visible_cat_cache);

entferne darunter folgende Zeilen:

 $sub_cat_list "";
  
$i 1;
  foreach (
$visible_cat_cache as $subcat_id) {
    if (
$i <= $num_subs && $i <= $config['num_subcats']) {
      
$sub_url $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$subcat_id);
      
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if (
$i != $config['num_subcats'] && $i $config['num_subcats'] && $i $num_subs) {
        
$sub_cat_list .= ", ";


...und ersetze diese durch:

 // ------------------ vor ersten Unterverzeichnis-Namen "- " eingefügt -----------------------------
  
$sub_cat_list "- ";
  
$i 1;
  foreach (
$visible_cat_cache as $subcat_id) {
    if (
$i <= $num_subs && $i <= $config['num_subcats']) {
      
$sub_url $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$subcat_id);
      
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if (
$i != $config['num_subcats'] && $i $config['num_subcats'] && $i $num_subs) {
// ------------------ vor alle weiteren Unterverzeichnis-Namen "<br/>- " eingefügt ------------------
        
$sub_cat_list .= "<br/>- ";
« Last Edit: November 22, 2011, 02:34:09 PM by VGerhard »

Rembrandt

  • Guest
Re: Sub Categories View ?
« Reply #2 on: November 22, 2011, 04:13:14 PM »