You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Components encourage **markup reusage and refactoring**. Only the component knows about its implementation
119
-
details. As long as the interface stays compatible, the implementation can change.
120
-
* Components can be a tool to **enforce design guidelines**. If the component's implementation respects the
121
-
guidelines, they are respected everywhere the component is used. A helpful tool to accomplish that is the corresponding
122
-
living styleguide: [Fluid Styleguide](https://github.com/sitegeist/fluid-styleguide).
123
-
* Components **formalize and improve communication**. Frontend developers and integrators agree on a clearly
124
-
defined interface instead of debating implementation details.
125
-
* Components **reduce dependencies**. Frontend developers can work independent of integrators and backend developers.
126
-
127
86
## Getting Started
128
87
129
-
1.[Install the extension](#installation)
88
+
1. Install the extension either [from TER](https://typo3.org/extensions/repository/view/fluid_components)
89
+
or [via composer](https://packagist.org/packages/sitegeist/fluid-components):
90
+
91
+
```
92
+
composer require sitegeist/fluid-components
93
+
```
130
94
131
95
2. Define the component namespace in your *ext_localconf.php*:
132
96
@@ -140,25 +104,43 @@ defined interface instead of debating implementation details.
140
104
3. Create your first component in *EXT:my_extension/Resources/Private/Components/* by creating a directory
141
105
*MyComponent* containing a file *MyComponent.html*
142
106
143
-
4. Define your component according to [How do components look like?](#how-do-components-look-like) as well as
144
-
the [ViewHelper Reference](Documentation/ViewHelperReference.md).
107
+
4. Define and apply your component according to [How do components look like?](#how-do-components-look-like). The [Extended Documentation](#extended-documentation)
108
+
can be helpful as well.
145
109
146
-
5.Render your component by including the namespace and calling the component by its name:
110
+
5.Check out [Fluid Styleguide](https://github.com/sitegeist/fluid-styleguide), a living styleguide for Fluid Components, and [Fluid Components Linter](https://github.com/sitegeist/fluid-components-linter) to improve the quality and reusability of your components.
147
111
148
-
```xml
149
-
{namespace my=VENDOR\MyExtension\Components}
150
-
<my:myComponent someParameter="someValue" />
151
-
```
112
+
If you have any questions, need support or want to discuss components in TYPO3, feel free to join [#ext-fluid_components](https://typo3.slack.com/archives/ext-fluid_components).
152
113
153
-
6. Check out [Fluid Styleguide](https://github.com/sitegeist/fluid-styleguide), a living styleguide for Fluid Components, and [Fluid Components Linter](https://github.com/sitegeist/fluid-components-linter) to improve the quality and reusability of your components.
114
+
## Why should I use components?
154
115
155
-
If you have any questions, need support or want to discuss components in TYPO3, feel free to join [#ext-fluid_components](https://typo3.slack.com/archives/ext-fluid_components).
116
+
* Components encourage **markup reusage and refactoring**. Only the component knows about its implementation
117
+
details. As long as the interface stays compatible, the implementation can change.
118
+
* Components can be a tool to **enforce design guidelines**. If the component's implementation respects the
119
+
guidelines, they are respected everywhere the component is used. A helpful tool to accomplish that is the corresponding
120
+
living styleguide: [Fluid Styleguide](https://github.com/sitegeist/fluid-styleguide).
121
+
* Components **formalize and improve communication**. Frontend developers and integrators agree on a clearly
122
+
defined interface instead of debating implementation details.
123
+
* Components **reduce dependencies**. Frontend developers can work independent of integrators and backend developers.
0 commit comments