[TYPO3-english] Best practice with namespaces? Flux, VHS, etc.
Jennifer Koenig
jenka13all at gmail.com
Mon Oct 20 12:31:18 CEST 2014
hi everyone,
I have a question about best practices for using namespaces in HTML templates using fluid, flux, vhs, etc. I see two different ways of doing this:
{namespace v=Tx_Vhs_ViewHelpers}
or
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
Which is preferable? Is it enough to include the namespace on the Index.html template, or does this need to be included on templates that are included as content elements via a plugin? What about on partials?
I am following the documentation under
https://fluidtypo3.org/documentation/templating-manual/templating/creating-templates/content-element.html
but there are so many holes, things not explained that are imo not obvious. For example what needs to be in the Layout/Content.html for the following template construction:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration" />
<f:section name="Preview" />
<f:section name="Main" />
</div>
Does Content.html need to render "Configuration" and "Preview" as well as "Main"? Whatever I try, I can't get my flux forms under "Configuration" to show up in some tab in the backend when editing that page, although the frontend-part shows up fine.
Is there something online yet that can provide more detail about how to work with these extensions correctly?
More information about the TYPO3-english
mailing list