Die Struktur ist read-only und sieht ungefähr so aus (ein Array aus Arrays):
Code: Alles auswählen
$html_content = array(
1 => array(
"section_title" => mi18n("Description"),
"cms_var" => "CMS_VAR[1]",
"cms_value" => "CMS_VALUE[1]",
"cms_html" => "CMS_HTML[1]",
"cms_var2" => "CMS_VAR[201]",
"cms_value2" => "CMS_VALUE[201]"
),
2 => array(
"section_title" => mi18n("Location"),
"cms_var" => "CMS_VAR[2]",
"cms_value" => "CMS_VALUE[2]",
"cms_html" => "CMS_HTML[2]",
"cms_var2" => "CMS_VAR[202]",
"cms_value2" => "CMS_VALUE[202]"
),
3 => array(
"section_title" => mi18n("Project Start and End"),
"cms_var" => "CMS_VAR[3]",
"cms_value" => "CMS_VALUE[3]",
"cms_html" => "CMS_HTML[3]",
"cms_var2" => "CMS_VAR[203]",
"cms_value2" => "CMS_VALUE[203]"
),
...
8 => array(
"section_title" => mi18n("Current State"),
"cms_var" => "CMS_VAR[8]",
"cms_value" => "CMS_VALUE[8]",
"cms_html" => "CMS_HTML[8]",
"cms_var2" => "CMS_VAR[208]",
"cms_value2" => "CMS_VALUE[208]"
),
...
);
Sollte man so was irgendwo global erklären? (config.local.php?) sollte man eine neue Klasse im Root Directory von Contenido anlegen? Oder im inc verzeichnis ? oder im includes Verzeichnis?
Oder ein eigenes Konfigfile im Verzeichnis des Mandanten anlegen? Wenn ja, in welchem Dateiformat?
Ich habe die Struktur zur Zeit zweimal deklariert, im Input und im Outputbereich. Das ist das einfachste, aber auch redundant.
Ich programmiere nur sporadisch Module, und hier im Forum findet man z.T abstruse Lösungen (meist mit 2 fach Deklaration wie bei mir) ... da dachte ich mir, mal einen eigenen Thread aufmachen. Auch wenn es irgendwann schon mal diskutiert worden sein sollte.