Contributors, publishers, and site administrators can import a variety of assets, such as images, HTML pages, and PDFs, to use in a website. You can import assets and files individually, or use a zipped file. When importing entire websites or large numbers of assets, it’s easier to create a zipped file of the content with the desired folder structure. When importing the zipped file for a website, Site.com recreates your website and places everything in the same folder structure.
Required Editions
| Available in: Salesforce Classic |
|
Available for purchase in: Enterprise, Performance, and Unlimited Editions Available (with limitations) in: Developer Edition |
| User Permissions Needed | |
|---|---|
| To build, edit, and manage Site.com sites: |
Site.com Publisher User field enabled on the user detail page AND Site administrator or designer role assigned at the site level |
| To edit only content in Site.com sites: |
Site.com Contributor User AND Contributor role assigned at the site level |
The quickest way to import one or more files is to:
- Select the files from your computer and drag them directly onto the Studio interface. This is supported for Mozilla® Firefox® and Google® Chrome only. You can drag individual files, or a zipped file.
- Depending on the types of files you’re importing, a dialog box can appear that
lets you:
- Select Unzip files to extract the contents of a .zip file. If the .zip file includes folders, this structure is maintained in your site.
- Select Overwrite existing files to replace a file that exists in the site.
- Select Convert CSS files into style
sheets, if you're a site administrator or designer, to
convert a CSS file into a style sheet that you can use to style your
website.
Note If you import a .zip file that includes CSS files, and they fail to convert, they aren’t valid. Try unchecking this option and then reimporting the .zip file. - Select Convert HTML files into pages to import HTML pages into your website. The structure of the HTML page is maintained in your site, but the HTML is not validated during import.
Alternatively, to import a single file:
- Click Import....
- Click Browse... to locate the file.
- Select the file and click Open.
- Depending on the type of file you’re importing, you can:
- Select Unzip files to extract the contents of a .zip file. If the .zip file includes folders, this structure is maintained in your site.
- Select Overwrite existing files to replace a file that exists in the site.
- Select Convert CSS files into style sheets, if
you're a site administrator or designer, to convert a CSS file into a
style sheet that you can use to style your website.
Note If you import a .zip file that includes CSS files, and they fail to convert, they aren’t valid. Try unchecking this option and then reimporting the .zip file. - Select Convert HTML files into pages to import HTML pages into your website. The structure of the HTML page is maintained in your site, but the HTML is not validated during import.
- Click Import. A message appears indicating whether the file was imported successfully.
- Click
.
You can add images and videos to the text areas of your site pages, or create a hyperlink to any imported asset. If you're a site administrator or designer, you can add also add images directly to the page.
View the list of imported assets in the Assets view on the Overview tab. You can also access assets in the All Site Content view, which displays the folder hierarchy of your site.
- To view a thumbnail of an imported image, hover over it.
- To save an asset to your computer, hover over or select it and click
| Download. - To remove an asset from your site if you're a site administrator or designer,
hover over or select it and click
| Delete. If the asset is being used in your site, you see a confirmation
message with a list of locations where that asset is in use. After an asset file
is deleted, it exists in the Salesforce cache for up to 24 hours. After this
period it is permanently deleted from our systems.
Note An asset can still be accessible if it's cached locally by a browser, or cached by an external system. -
To rename an asset on your site if you're a site
administrator or designer, hover over the asset and click
| Rename.
- Export Assets
Designers and site administrators can export all site assets separately from the .site file. You can export assets together or individually. - Creating and Managing Folders
As a site administrator or designer, you can create folders to manage your pages, style sheets, templates, and assets.