[TYPO3-mvc] EXT:blog_example :: unnecessary html code in fluid templates for forms?
Bastian Waidelich
bastian at typo3.org
Wed Jun 6 10:56:24 CEST 2012
Roland wrote:
Hi Roland,
> --- quote ---
>
> <f:form.textfield property="title" id="tx-blogexample-title"><input
> type="text" id="tx-blogexample-title" /></f:form.textfield>
>
> --- /quote ---
>
> Am i right, that <input type="text" id="tx-blogexample-title" /> is not
> necessary here? is this for demonstrational purpose to show how the
> generated html code will look like?
Yes, you're right.
The reason is simple:
If you open the Fluid template in a browser, fluid tags will be ignored
and invisible. By adding those snippets in the tags, the browser will
display them and you can adjust markup & styling without needing to
render the actual template.
..But for the blog_example that might be more confusing than helpful, I
agree ;)
--
Bastian Waidelich
TYPO3 Core Team Member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-typo3v4mvc
mailing list