<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- P { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Liebe Opus-Community,<br>
</p>
<p><br>
</p>
<p>ich bin neu in der Runde und habe gleich folgende Frage:<br>
</p>
<p><br>
</p>
<p>ich habe ein neues Enrichmend-Feld Selektionsliste definiert<br>
</p>
<p><br>
</p>
<pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(232, 191, 106);"><field </span><span style="color: rgb(186, 186, 186);">name</span><span style="color: rgb(106, 135, 89);">="dipf_education_level" </span><span style="color: rgb(186, 186, 186);">required</span><span style="color: rgb(106, 135, 89);">="no" </span><span style="color: rgb(186, 186, 186);">formelement</span><span style="color: rgb(106, 135, 89);">="Select" </span><span style="color: rgb(186, 186, 186);">datatype</span><span style="color: rgb(106, 135, 89);">="Enrichment" </span><span style="color: rgb(186, 186, 186);">multiplicity</span><span style="color: rgb(106, 135, 89);">="*"</span><span style="color: rgb(232, 191, 106);">><br></span><span style="color: rgb(232, 191, 106);">    <option </span><span style="color: rgb(186, 186, 186);">value</span><span style="color: rgb(106, 135, 89);">="Grundschule"</span><span style="color: rgb(232, 191, 106);">></option><br></span><span style="color: rgb(232, 191, 106);">    <option </span><span style="color: rgb(186, 186, 186);">value</span><span style="color: rgb(106, 135, 89);">="Gymnasium"</span><span style="color: rgb(232, 191, 106);">></option><br></span><span style="color: rgb(232, 191, 106); font-size: 9pt;"></field></span><span style="color: rgb(232, 191, 106); font-size: 9pt;">​</span></pre>
<p><br>
</p>
<p>Was ich vermisse ich eine dynamische Belegung von Optionen. Ein Work-Around wäre, die XML-Datei, wo die Felder für meinen DocType definiert sind, immer wieder
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
mit ggf. neuen Werten</span> neu anzulegen / zu überschreiben.<br>
</p>
<p>Das erscheint mir aber nicht all zu elegant.<br>
</p>
<p>Vielleicht gibt es eine Möglichkeit, im .phtml-File des DocTypes die <option> Values zu überschreiben?<br>
</p>
<p><br>
</p>
<p>sowas wie<br>
</p>
<pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);"><?= </span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(255, 198, 109); background-color: rgb(35, 37, 37);">group</span><span style="background-color: rgb(35, 37, 37);">(</span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">groupdipf_education_level</span><span style="font-size: 9pt;">-></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">setOptionValues(['Grundschule', 'Gymnasium'])</span><span style="background-color: rgb(35, 37, 37);">) </span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">?></span></pre>
<pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);"><br></span></pre>
<pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">statt</span><pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);"><?= </span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(255, 198, 109); background-color: rgb(35, 37, 37);">group</span><span style="background-color: rgb(35, 37, 37);">(</span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">groupdipf_education_level</span><span style="background-color: rgb(35, 37, 37);">) </span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">?></span></pre></pre>
<p><br>
</p>
<p>Ich habe mir <br>
</p>
<p>\Publish_View_Helper_Fieldset::renderHtmlSelect​($field, $options)<br>
</p>
<p>und<br>
</p>
<p>\Publish_View_Helper_Group::group($value, $options, $name)<br>
</p>
<p>angeschaut<br>
</p>
<p><br>
</p>
<p>und folgendes im .phtml-Template versucht:<br>
</p>
<p><br>
</p>
<pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt;"><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);"><?php<br></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">groupdipf_education_level</span><span style="background-color: rgb(35, 37, 37);">[</span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'Fields'</span><span style="background-color: rgb(35, 37, 37);">][</span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'options'</span><span style="background-color: rgb(35, 37, 37);">] = [<br></span><span style="background-color: rgb(35, 37, 37);">        </span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'Val1' </span><span style="background-color: rgb(35, 37, 37);">=> </span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'Opt1'</span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">,<br></span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">        </span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'Val2' </span><span style="background-color: rgb(35, 37, 37);">=> </span><span style="color: rgb(106, 135, 89); background-color: rgb(35, 37, 37);">'Opt2'</span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">,<br></span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">    </span><span style="background-color: rgb(35, 37, 37);">]</span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">;<br></span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">?></span><span style="color: rgb(204, 120, 50);"><br></span><span style="color: rgb(204, 120, 50);"><br></span><span style="color: rgb(204, 120, 50);">    </span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);"><?= </span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(255, 198, 109); background-color: rgb(35, 37, 37);">group</span><span style="background-color: rgb(35, 37, 37);">(</span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">$this</span><span style="background-color: rgb(35, 37, 37);">-></span><span style="color: rgb(152, 118, 170); background-color: rgb(35, 37, 37);">groupdipf_education_level</span><span style="background-color: rgb(35, 37, 37);">) </span><span style="color: rgb(204, 120, 50); background-color: rgb(35, 37, 37);">?></span></pre>
<p><br>
</p>
<p>Aber ohne Erfolg.<br>
</p>
<p>Ich Vermute außerdem, dass das bisher unbenutzte Parameter $options in <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">renderHtmlSelect​($field, $options)</span> vielleicht für meine
 Zwecke gedacht war, aber die Logik noch nicht implementiert wurde.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Danke für Hilfe im Voraus!<br>
</p>
<p>Hermann<br>
</p>
</body>
</html>