Seite 1 von 1
[4.8.4] Template ins kategories problem
Verfasst: Mi 28. Mai 2008, 05:59
von djavet
Hallo
Es gibt ein kleine bug wenn ich mache ein neue kategorie, das gewählte template is nicht speichern und muss manuelle wieder noch einmal erstellt sein:
Dom
Verfasst: Do 29. Mai 2008, 07:39
von emergence
beim erstellen einer kategorie mit gleichzeitiger auswahl des kategorie templates, wird die template auswahl ignoriert und man muss es nochmals nach dem erstellen der kategorie auswählen ?
muss man verifizieren... verschoben....
Verfasst: Do 29. Mai 2008, 09:06
von djavet
Yope. Das ist richtig.
Dom
Verfasst: Do 29. Mai 2008, 22:35
von OliverL
Jope, kann das von oben nur bestätigen.
Zum Thema:
Kategorie > Template
Pos.1: Zuweisung im Artikel-Left-Top - Frame 1
Erneuerung der con_cache für die enhaltenen Artikel.
http://forum.contenido.org/viewtopic.php?t=20879
Pos.2: ! Muss noch von anderen bestätigt werden !
Zuweisung im Artikel-Left-Top - Frame 1
Wir hier ein neues Template der Kategorie zugewiesen
- werden in 4.8.x auch alle Konfigurationen gelöscht
- Problem: Hier werden aber die Standard-Template-Werte nicht ergänzt
> Somit sind keine/NULL Konfigurationen gegeben
(ohne löschen [in 4.6.23] konnte ich das noch als nützliche Funktion abstrahieren )
mfg
OliverL
P.S.: Lösung für Pos.1 im Cross-Post. Lösung für Pos.2 bei gegebener Zeit.
Verfasst: Mo 16. Jun 2008, 05:15
von Supporter
Ich kann letzeren Post Pos. 2 bestätigen.
Verfasst: Mi 25. Jun 2008, 14:28
von timo.trautmann_4fb
Problem mit der Zuweisung des Templates zu einer Kategorie beim Erstellen einer neuen Kategorie tritt nur auf, wenn kein Standard Template erstellt wurde.
FIX functions.str.php
strNewTree()
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
}
ersetzen durch
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
} else {
//2008-06-25 timo.trautmann also set default template if it is selcted by user and there is no default template
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
}
strNewCategory()
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
ersetzen durch
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
} else {
//2008-06-25 timo.trautmann also set default template if it is selcted by user and there is no default template
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
}