Files

Top  Previous  Next

Any type of file can be inserted in a project tree under a folder or a page. Files can also be inserted right under the site node.

Should all the files used in pages be inserted to the project?

No. If a file is used with an static reference in a web page, (like an image file or a java script file), the Application Studio will recognize it and therefore will copy it to the web server.

But there are cases where you cannot explicitly indicate all the files required in a web page; especially in a dynamic page. Mostly, in dynamic pages the file names are dynamic referenced; thus they are determined at the run time.

For such cases we must tell the Application Studio "I want these file be copied to the web server" by inserting the files explicitly to the project.

Static reference vs dynamic reference

If source property of an image element is given a value like

"images\product.gif" then this is a static reference.

But if it is given a value like

"$vof(image_name)" or "images\$vof(image_name)" then this is a dynamic reference and the Application Studio cannot identify the file to be copied during deployment.

A reference like or "/images/product.gif" (with "/" instead of "\") is not accepted as static reference and files referenced like that are not copied to the web server too.

See Inserting Files to project

File Related Commands

Bring File
Insert File
Remove File