# How can I get URI to plugin resources?

**URL:** <https://forum.shopware.com/t/how-can-i-get-uri-to-plugin-resources/31428>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [16. Oktober 2015 um 18:11 UTC](https://forum.shopware.com/t/how-can-i-get-uri-to-plugin-resources/31428 "2015-10-16T18:11:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maksim\_N](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Maksim\_N](https://forum.shopware.com/u/Maksim_N)\
**Post date:** [16. Oktober 2015 um 18:11 UTC](https://forum.shopware.com/t/how-can-i-get-uri-to-plugin-resources/31428/1 "2015-10-16T18:11:45Z")

</div>

Hello How can I get URI to plugin resources? I assume that my plugin could be stored in Local folder or Community folder (or event, Backend, Core and etc.) How can I get the correct URI to my resources (css, img) to include it on webpage? Thanks

---

<div class="post-metadata">

**Author:** ![tarkka](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tarkka](https://forum.shopware.com/u/tarkka)\
**Post date:** [25. November 2015 um 10:51 UTC](https://forum.shopware.com/t/how-can-i-get-uri-to-plugin-resources/31428/2 "2015-11-25T10:51:52Z")

</div>

Hello, You can use smarty filter {link}. For example: {link file=‚frontend/\_resources/images/user-icon.jpg‘ fullPath=true} The path here is relative to „[plugin home]/Views/“. Also make sure that function „addTemplateDir(…)“ is called in plugin bootstrap file.

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [25. November 2015 um 10:54 UTC](https://forum.shopware.com/t/how-can-i-get-uri-to-plugin-resources/31428/3 "2015-11-25T10:54:43Z")

</div>

You can also use YourBootstrap::getPath() to get the path to your plugin folder. Kind regards
