Assets

Documentation article about Assets

·1 min read·View Oracle Docs

Assets

Assets

The assets object defines paths to the images and fonts located in the theme directory's assets folder in a files array for each image and font used. These paths are relative to the theme's assets folder path. This is where you add any new asset files introduced as part of your theme customizations.

json
1//...
2"assets": {
3 "img": {
4 "files": [
5 "img/favicon.ico",
6 "img/image-not-available.png",
7 "img/add-to-cart-logo.png",
8 //...
9 ]
10 },
11 "font-awesome": {
12 "files": [
13 "font-awesome/FontAwesome.otf",
14 "font-awesome/custom/fontawesome-webfont.eot",
15 //...
16 ]
17 },
18 "fonts": {
19 "files": [
20 "fonts/DancingScript-Bold.ttf",
21 "fonts/DancingScript-Regular.ttf",
22 //...
23 ]
24 }
25}
26//...

Frequently Asked Questions (4)

What is the purpose of the assets object in NetSuite?
The assets object defines paths to image and font files located in a theme's assets folder, allowing the theme customizations to use these files.
Where should I place new asset files for a theme in NetSuite?
New asset files should be added to the theme's assets folder, and their paths should be included in the corresponding files array within the assets object.
Are the paths in the assets object absolute or relative?
The paths in the assets object are relative to the theme's assets folder path.
Can I add both images and fonts to the assets object?
Yes, you can add both images and fonts, and they should be categorized under the 'img', 'font-awesome', or 'fonts' sections within the assets object.
Source: Assets Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →