Reputation: 317
I have some content elements created with the DCE extension. In one of the templates, I loop through some products and I want to insert links like:
<a href="http://www.sitedomain.com/{product.alias}">{product.name}</a>
How can I do this without writing my own view helper? Is it possible to access baseURL inside Fluid templates?
Thanks!
Upvotes: 0
Views: 1354
Reputation: 317
I left the links like:
<a href="/{product.alias}">{product.name}</a>
And set in typoscript config:
absRefPrefix = http://www.sitedomain.com
This was needed only for a specific request, for a certain typeNum, so the normal typo3 content pages are not affected.
Upvotes: 1