Antwort #2 am: 07. September 2015, 21:10:20
Hallo wicki
Bei diesem Vorschlag ist die erste Hauptkategorie immer dann offen, wenn keine andere Hauptkategorie geöffnet wurde bzw. die Variable '$cPath' leer ist.
In '/templates/xtc5/source/boxes/categories.php' ca. Zeile 95
folgenden Code
if ($cPath) { $new_path = ''; $id = explode('_', $cPath); // Hetfield - 2009-08-18 - replaced deprecated function split with explode to be ready for PHP >= 5.3 ersetzen mit diesem Code
if ($path = $cPath ?
$cPath : 1) { $new_path = ''; $id = explode('_', $path); // Hetfield - 2009-08-18 - replaced deprecated function split with explode to be ready for PHP >= 5.3 Die 1 in diesem Codefragment '($path = $cPath ? $cPath : 1)' musst Du gegebenenfalls durch die ID deiner ersten Hauptkategorie ersetzen.
[EDIT]
Jetzt sehe ich erst, Du willst ja alle Hauptkategorien offen haben, das leistet mein Vorschlag natürlich nicht.
Gruss
Hanspeter