<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=465&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / FormBuilder und HTML5]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=465</link>
		<description><![CDATA[Die aktuellsten Beiträge in FormBuilder und HTML5.]]></description>
		<lastBuildDate>Fri, 04 Mar 2011 11:43:33 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: FormBuilder und HTML5]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=4328#p4328</link>
			<description><![CDATA[<div class="quotebox"><cite>Foaly* schrieb:</cite><blockquote><div><p>Scheint nicht das große Interesse zu wecken <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /> Meine Frage ist och offen: Gibt es eine Möglichkeit Pflichtfelder mit dem HTML5-Attribut required auszustatten?</p></div></blockquote></div><p>kann man das nicht mit einer kombination von smarty modifiers tun? <br />als feld-alias gibst du den entsprechenden feldern zb &quot;required&quot;.<br />dann sieht das so aus:<br />&lt;input type=&quot;text&quot; id=&quot;required&quot; maxlength=&quot;80&quot; size=&quot;25&quot; value=&quot;&quot; name=&quot;cntnt01fbrp__36&quot;&gt;</p><p>dann haben zwar alle die selbe id wenn du das mehrfach machst aber vor der ausgabe machst du dann folgendes im formular template:<br />{$entry-&gt;required_symbol|replace:&#039;id=&quot;required&quot;&#039;:&#039;required=&quot;required&quot;&#039;} </p><p>einfach mal rumexperimentieren!</p><p>gruß</p><br /><p>edit: habs grad mal ausprobiert aber an der richtigen stelle, so gehts:</p><div class="codebox"><pre><code>{if $entry-&gt;smarty_eval == &#039;1&#039;}
{eval var=$entry-&gt;input|replace:&#039;id=&quot;required&quot;&#039;:&#039;required=&quot;required&quot;&#039;}
{else}
{$entry-&gt;input|replace:&#039;id=&quot;required&quot;&#039;:&#039;required=&quot;required&quot;&#039;}
{/if}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Fri, 04 Mar 2011 11:43:33 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=4328#p4328</guid>
		</item>
		<item>
			<title><![CDATA[Re: FormBuilder und HTML5]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=4327#p4327</link>
			<description><![CDATA[<p>Scheint nicht das große Interesse zu wecken <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /> Meine Frage ist och offen: Gibt es eine Möglichkeit Pflichtfelder mit dem HTML5-Attribut required auszustatten?</p><p>Hab außerdem das Textfeld um eine Überprüfungs-Methode erweitert: Telefon (HTML5 basiert). Auch wenn es vielleicht auch hätte besser in einen eigenen Typ gekapselt werden sollen? Oder nicht..</p><p>Es gibt ja leider keine Chance, dass die auch in das Modul-Forge Einzug halten wird <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/sad.png" alt="sad" /> Die Feature Requests von 2006 wurden bisher nich beachtet.</p>]]></description>
			<author><![CDATA[dummy@example.com (Foaly*)]]></author>
			<pubDate>Fri, 04 Mar 2011 11:32:23 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=4327#p4327</guid>
		</item>
		<item>
			<title><![CDATA[FormBuilder und HTML5]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3823#p3823</link>
			<description><![CDATA[<p>Hallo,</p><p>das placeholder-Attribut ist im FormBuilder ja schon implementiert. Nur im Absender-Feld fehlt es noch, zusammen mit dem Standard-Wert an sich (<a href="http://dev.cmsmadesimple.org/feature_request/view/5103" rel="nofollow">http://dev.cmsmadesimple.org/feature_request/view/5103</a>). Lässt sich aber recht schnell fixen:</p><p>FromEmailAddressField.class.php#40:</p><div class="codebox"><pre><code>[== PHP ==]
$adv = array(
array($mod-&gt;Lang(&#039;title_field_default_value&#039;),$mod-&gt;CreateInputText($formDescriptor,
&#039;fbrp_opt_default&#039;,$this-&gt;GetOption(&#039;default&#039;),25,1024)) );</code></pre></div><p>UND</p><p>FromEmailAddressField.class.php#31:</p><div class="codebox"><pre><code>[== PHP ==]
($this-&gt;HasValue()?htmlspecialchars($this-&gt;Value,
ENT_QUOTES):htmlspecialchars($this-&gt;GetOption(&#039;default&#039;), ENT_QUOTES)),</code></pre></div><p>Wer noch das placeholder-Attribut setzen will, ändert FromEmailAddressField.class.php#40 in:</p><div class="codebox"><pre><code>[== PHP ==]
$adv = array(
    array($mod-&gt;Lang(&#039;title_field_default_value&#039;),$mod-&gt;CreateInputText($formDescriptor, &#039;fbrp_opt_default&#039;,$this-&gt;GetOption(&#039;default&#039;),25,1024)),
    array($mod-&gt;Lang(&#039;title_html5&#039;),$mod-&gt;CreateInputHidden($formDescriptor,&#039;fbrp_opt_html5&#039;,&#039;0&#039;).
    $mod-&gt;CreateInputCheckbox($formDescriptor, &#039;fbrp_opt_html5&#039;,&#039;1&#039;,$this-&gt;GetOption(&#039;html5&#039;,&#039;0&#039;)))
);</code></pre></div><p>UND</p><p>FromEmailAddressField.class.php#30ff in:</p><div class="codebox"><pre><code>[== PHP ==]
$html5 = $this-&gt;GetOption(&#039;html5&#039;,&#039;0&#039;) == &#039;1&#039; ? &#039; placeholder=&quot;&#039;.$this-&gt;GetOption(&#039;default&#039;).&#039;&quot;&#039; : &#039;&#039;;

return $mod-&gt;fbCreateInputText($id, &#039;fbrp__&#039;.$this-&gt;Id,
    ($this-&gt;HasValue()?htmlspecialchars($this-&gt;Value, ENT_QUOTES):htmlspecialchars($this-&gt;GetOption(&#039;default&#039;), ENT_QUOTES)),
    25,128,$html5.$js.$this-&gt;GetCSSIdTag(),&#039;email&#039;);</code></pre></div><p>Mir ist es allerdings nicht gelungen, Pflichtfeldern das required Attribut anzuhängen (<a href="http://dev.cmsmadesimple.org/feature_request/view/6135" rel="nofollow">http://dev.cmsmadesimple.org/feature_request/view/6135</a>), da isRequired() in der Funktion GetFieldInput() nur NULL zurückgibt. Die Parameter scheinen nicht geladen worden zu sein. Ebenfalls die ID, sodass LoadField() nicht ausgeführt werden kann.</p><p>Jemand eine Idee?</p>]]></description>
			<author><![CDATA[dummy@example.com (Foaly*)]]></author>
			<pubDate>Sat, 19 Feb 2011 16:05:38 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3823#p3823</guid>
		</item>
	</channel>
</rss>
