How to add Resources to your project


There are several of the stacks that require you to source image or video files that are external to the stack itself. There are two primary ways to accomplish this: manually uploading to the server and utilizing the page assets feature in Rapidweaver. Its best if your file name does not have a space in it.

Manually Uploading to Server

You can manually upload the image files to your web server via your favorite FTP program. Then you can configure the file path to the location that the files were copied to. This method is recommended for larger files such as videos, zip/dmg archives and some documents.

I upload a file called my_video.mp4 to my webserver in the folder called assets (you can use whatever folder name you like) I can verify my path by going to http://yourdomain.com/assets/my_video.mp4 Once I have verified the image is in the location, I can configure my path in the stack to be /assets/my_video.mp4

Using Resources in RapidWeaver 5

With the upgrade to RW5, Resources was introduced as the alternative method.

To access the Page Assets in Rapidweaver, you will need to open up your Page Info/Page Inspector window and go to the Header tab.Then you will need to go to the Assets Tab.Click on the Add Files button and navigate to the image file you want to add. Its best if your file name does not have a space in it. There is a new variable available in Stacks v1.3 that let you easily point to the assets folder. Configure the path setting in your stack like the following… %rapidweaverAssetPath%/myimage.jpg The Resources section in RW5 is located on the left side of the RapidWeaver screen You have a couple options to add files here, you can simply drag your file in, or use the “+” in the lower left of your screen and choose “Add Resource” and navigate to the image file you want to add. Its best if your file name does not have a space in it. If you need to use a direct URL to the file, an example of the URL would appear something like, http://www.domainname.com/resources/filename.extension Realmac has created a macro that let you easily point to the resources folder. Configure the path setting in your stack like the following… %resource(filename.extension)%