.. _examples:
========
Examples
========
Here you will find some random examples how to use Foundation framework within TYPO3 project.
Accordion for DateMenu in News extension
========================================
If you use news_ extension version 3.0.0, you can easily override any Fluid template used by the extension.
All you need is to define the path to your custom templates in TypoScript, like:
.. code-block:: ts
plugin.tx_news {
view {
layoutRootPaths.101 = EXT:myext/Resources/Private/news/Layouts/
partialRootPaths.101 = EXT:myext/Resources/Private/news/Partials/
templateRootPaths.101 = EXT:myext/Resources/Private/news/Templates/
}
}
Then, you can create a custom template for DateMenu in ``EXT:myext/Resources/Private/news/Templates/News/DateMenu.html``:
.. code-block:: html
{namespace n=Tx_News_ViewHelpers}
.. _news: http://typo3.org/extensions/repository/view/news
Rendering vCards unsing microformats
====================================
Foundation includes some default CSS styling for vCard microformats.
An easy way to render vCards is to use tt_address_ extension.
The default template provided with tt_address already renders microformats, and you can customize it
as you need.
.. figure:: Images/vcard.png
:alt: Example of vcard rendering.
.. _tt_address: http://typo3.org/extensions/repository/view/tt_address