There are a number of viewhelpers which can be used in Fluid. The f:link and f:uri seem to do basically the same thing.
For example:
This results in the following questions:
link
viewhelpers in Fluid render a full HTML link, so <a href="..." ...>...</a>
. In comparison all uri
viewhelpers only render the URI, thus what would end up within href
of a link or eg a src()
in CSS.There are some docs around the net which cover parts of Fluid but there is no definite guide which contains everything. Here are a few resources:
You are very welcome to improve the docs wherever you see something amiss. :-)
f.link.external
actually creates a link and f.uri
just outputs the uri .
Fluid Source:
<f:link.external uri="https://typo3.org">f.link.external</f:link.external>
Result:
<a href="https://typo3.org">f.link.external</a>
Fluid Source:
<f:uri.external uri="https://typo3.org">f.uri.external</f:uri.external>
Result:
https://typo3.org
It might be a good idea to update the documentation for f.uri.external because it is misleading.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.