# Link to the Resource folder

**URL:** <https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491>\
**Category:** RapidWeaver Elements\
**Created:** [December 4, 2024, 5:36am UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491 "2024-12-04T05:36:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bartje](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bartje/32/1210_2.png) [@Bartje](https://forums.realmacsoftware.com/u/Bartje)\
**Post date:** [December 4, 2024, 5:36am UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491/1 "2024-12-04T05:36:30Z")

</div>

When I want to add a property to a custom component where the file is located in the resource folder (for example, an image), how do I reference the resource folder in my template code?

I believe I saw it mentioned in one of the videos, but I can’t seem to find it right now.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [December 4, 2024, 8:57am UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491/2 "2024-12-04T08:57:29Z")

</div>

You can’t link directly to the Resources in a project - you should use [the Resource control](https://docs.realmacsoftware.com/elements-docs/elements-language/properties.json/ui-controls/resource) for that 🙂

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [December 4, 2024, 9:48am UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491/3 "2024-12-04T09:48:37Z")

</div>

Hey @Bartje,

You can include resources (like images, fonts, and .js files) in your Dev Pack if you need them for a component, otherwise use the resource control.

Let us know what you’re aiming to do and we can help you work out the best way to do it ☺

Cheers!

---

<div class="post-metadata">

**Author:** ![Bartje](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bartje/32/1210_2.png) [@Bartje](https://forums.realmacsoftware.com/u/Bartje)\
**Post date:** [December 4, 2024, 12:00pm UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491/4 "2024-12-04T12:00:15Z")

</div>

The resource control was the solution. At first, it didn’t work. I must have done something wrong because now it works perfectly. “It works like magic,” as Steve J. would say! 🪄

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [December 4, 2024, 12:15pm UTC](https://forums.realmacsoftware.com/t/link-to-the-resource-folder/45491/5 "2024-12-04T12:15:50Z")

</div>

Ah, that’s perfect - Glad you got it sorted!
