ich habe mir heute die dokus nochmals genauer angeschaut und habe zu den cms-typen noch eine anfängerfrage:
z.b.
CMS_HTML[1] erzeugt ein span-element für das insite-editing. soweit, so gut. gehe ich richtig in der annahme, dass ich ein CMS_HTML[2] benötige, wenn ich mehrere bereiche auf einer seite habe, welche ich editieren möchte?
beispiel:
headline
text
headline
text
benötige ich nun 2 verschiedene module? also:
CMS_HTMLHEAD[1]
CMS_HTML[1]
CMS_HTMLHEAD[2]
CMS_HTML[2]
da habe ich echt noch keinen durchblick. jemand lust und nerven für mich?
update:
mein verständnis scheint wohl richtig zu sein:
http://contenido.org/forum/viewtopic.ph ... fd309fdd31
Code: Alles auswählen
<?php
if (!isset($mod_Texthtml_c)) { $mod_Texthtml_c=1; }
else $mod_Texthtml_c++;
switch($mod_Texthtml_c)
{
case 1: $t ="CMS_HTML[1]"; break;
case 2: $t ="CMS_HTML[2]"; break;
case 3: $t ="CMS_HTML[3]"; break;
case 4: $t ="CMS_HTML[4]"; break;
case 5: $t ="CMS_HTML[5]"; break;
case 6: $t ="CMS_HTML[6]"; break;
case 7: $t ="CMS_HTML[7]"; break;
case 8: $t ="CMS_HTML[8]"; break;
case 9: $t ="CMS_HTML[9]"; break;
case 10: $t ="CMS_HTML[10]"; break;
}
echo "<p>".$t."</p>";
?>
gruss ronan