---
title: "Uri.resource ViewHelper <f:uri.resource>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-uri-resource@13.4"
source: "Global/Uri/Resource.rst"
modified: "2026-09-17T09:07:45+00:00"
---

# Uri.resource ViewHelper `<f:uri.resource>`

ViewHelper for creating URIs to resources (assets).

This ViewHelper should be used to return public locations to extension resource files for use in the frontend output.

For images within FAL storages, or where graphical operations are performed, use `<f:uri.image>` instead.

Go to the source code of this ViewHelper: [Uri\\ResourceViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ResourceViewHelper.php).

**Table of contents**

-   [Examples](https://docs.typo3.org/permalink/t3viewhelper:examples@13.4)
-   [Arguments of the <f:uri.resource> ViewHelper](https://docs.typo3.org/permalink/t3viewhelper:arguments-of-the-f-uri-resource-viewhelper@13.4)

## Examples

### Best practice with EXT: syntax

**packages/my_extension/Resources/Private/Templates/Blog/Show.fluid.html**

```html
<link href="{f:uri.resource(path:'EXT:indexed_search/Resources/Public/Css/Stylesheet.css')}" rel="stylesheet" />
```

**Output**

```html
<link href="typo3/sysext/indexed_search/Resources/Public/Css/Stylesheet.css" rel="stylesheet" />
```

Preferred syntax that works in both extbase and non-extbase context.

### Defaults

**packages/my_extension/Resources/Private/Templates/Blog/Show.fluid.html**

```html
<link href="{f:uri.resource(path:'Css/Stylesheet.css')}" rel="stylesheet" />
```

**Output**

```html
<link href="typo3conf/ext/example_extension/Resources/Public/Css/Stylesheet.css" rel="stylesheet" />
```

Works only in extbase context since it uses the extbase request to find current extension, magically adds 'Resources/Public' to path.

### With extension name

**packages/my_extension/Resources/Private/Templates/Blog/Show.fluid.html**

```html
<link href="{f:uri.resource(path:'Css/Stylesheet.css', extensionName: 'AnotherExtension')}" rel="stylesheet" />
```

**Output**

```html
<link href="typo3conf/ext/another_extension/Resources/Public/Css/Stylesheet.css" rel="stylesheet" />
```

Magically adds 'Resources/Public' to path.

## Arguments of the `<f:uri.resource>` ViewHelper

-   **absolute**

    -   *Type:* bool
    -   *Default:* false

    If set, an absolute URI is rendered

-   **extensionName**

    -   *Type:* string

    Target extension name. If not set, the current extension name will be used

-   **path**

    -   *Type:* string
    -   *Required:* true

    The path and filename of the resource (relative to Public resource directory of the extension).

-   **useCacheBusting**

    -   *Type:* bool
    -   *Default:* true

    If set, the URI is rendered with a cache buster
