Auto-tools/Projects/CrossWeave/Test Format/Bookmarks: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with 'A bookmark asset list is an object with one or more key-value pairs. Each key is the full path for the array of contents specified in the key's value. For example: "bookmark-…')
 
No edit summary
Line 11: Line 11:
  }
  }


This describes two bookmarks, one in the '''menu''' folder, and the other in the '''folder1''' subfolder of '''menu'''.
This describes two bookmarks, one in the "menu" folder, and the other in the "folder1" subfolder of "menu".


All bookmark paths must begin with one of the following:
All bookmark paths must begin with one of the following:
Line 20: Line 20:
* "unfiled": the unfiled bookmarks folder
* "unfiled": the unfiled bookmarks folder
* "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this)
* "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this)
Sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu". CrossWeave does not support forward slashes as part of a folder name.

Revision as of 19:05, 20 May 2010

A bookmark asset list is an object with one or more key-value pairs. Each key is the full path for the array of contents specified in the key's value. For example:

"bookmark-list": {
  "menu": [
    { "uri": "http://www.google.com" },
    { "folder": "folder1" }
  ],
  "menu/folder1": [
    { "uri": "http://www.mozilla.com" }
  ]
}

This describes two bookmarks, one in the "menu" folder, and the other in the "folder1" subfolder of "menu".

All bookmark paths must begin with one of the following:

  • "menu": the normal bookmarks menu
  • "toolbar": the bookmarks toolbar
  • "tags": the tags folder
  • "unfiled": the unfiled bookmarks folder
  • "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this)

Sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu". CrossWeave does not support forward slashes as part of a folder name.