Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 65 additions & 10 deletions src/content/docs/reference/policies/ManagedBookmarks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The first entry in the list names the toolbar folder, and the entries after it a
- `toplevel_name`: The name of the folder button added to the bookmarks toolbar.
Only used in the first entry.
- `name`: The name shown for a bookmark or folder.
Firefox skips bookmarks without a `name`, and shows folders without a `name` as **Subfolder**.
- `url`: The address the bookmark opens.
A `javascript:` URL creates a bookmarklet.
- `favicon`: The URL of an icon to show for the bookmark.
Expand All @@ -28,6 +29,59 @@ The first entry in the list names the toolbar folder, and the entries after it a

<PolicyExample policy="ManagedBookmarks" />

### Adding a list of bookmarks

This example adds a folder to the bookmarks toolbar.
There's no `toplevel_name` entry, so Firefox names the folder **Managed bookmarks**.
By default, Firefox only shows the toolbar on the new tab page, so [`DisplayBookmarksToolbar`](/reference/policies/displaybookmarkstoolbar/) is set to `always`:

```json
{
"policies": {
"ManagedBookmarks": [
{ "name": "Intranet", "url": "https://intranet.example.com" },
{ "name": "IT help desk", "url": "https://help.example.com" },
{ "name": "Expenses", "url": "https://expenses.example.com" }
],
"DisplayBookmarksToolbar": "always"
}
}
```

### Organizing bookmarks into folders

The `toplevel_name` entry sets the name of the toolbar folder.
An entry with `children` is a folder, and folders can contain other folders:

```json
{
"policies": {
"ManagedBookmarks": [
{ "toplevel_name": "Example Corp" },
{ "name": "Intranet", "url": "https://intranet.example.com" },
{
"name": "HR",
"children": [
{ "name": "Benefits", "url": "https://hr.example.com/benefits" },
{ "name": "Time off", "url": "https://hr.example.com/time-off" }
]
},
{
"name": "Engineering",
"children": [
{ "name": "Code review", "url": "https://code.example.com" },
{
"name": "Runbooks",
"children": [{ "name": "On-call", "url": "https://wiki.example.com/on-call" }]
}
]
}
],
"DisplayBookmarksToolbar": "always"
}
}
```

## Windows (GPO)

Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) =
Expand Down Expand Up @@ -67,15 +121,16 @@ Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) =
<dict>
<key>toplevel_name</key>
<string>My managed bookmarks folder</string>
<dict>
<key>url</key>
<string>example.com</string>
<key>name</key>
<string>Example</string>
<key>favicon</key>
<string>https://example.com/favicon.ico</string>
</dict>
<dict>
</dict>
<dict>
<key>url</key>
<string>example.com</string>
<key>name</key>
<string>Example</string>
<key>favicon</key>
<string>https://example.com/favicon.ico</string>
</dict>
<dict>
<key>name</key>
<string>Mozilla links</string>
<key>children</key>
Expand All @@ -84,7 +139,7 @@ Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) =
<key>url</key>
<string>https://mozilla.org</string>
<key>name</key>
<string>Mozilla</string>
<string>Mozilla.org</string>
</dict>
<dict>
<key>url</key>
Expand Down
32 changes: 30 additions & 2 deletions src/content/docs/reference/policies/SearchEngines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Configure search engines in Firefox.

`SearchEngines` accepts an object with one or more of the following keys:

- `Add` (array of objects): Add new search engines. Each entry accepts:
- `Add` (array of objects): Add new search engines.
Each entry accepts:
- `Name` (**required**): the name of the search engine.
- `URLTemplate` (**required**): the search URL with `{searchTerms}` to substitute for the search term.
- `Method`: either [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/GET) or [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/POST).
Expand All @@ -21,14 +22,41 @@ Configure search engines in Firefox.
- `SuggestURLTemplate`: a search suggestions URL with `{searchTerms}` to substitute for the search term.
- `Encoding`: the query charset for the engine. Defaults to `UTF-8`.
Although there are five engines available in the ADMX template, there is no maximum number that can be specified — to add more in the ADMX template, duplicate the XML.
- `Default` (string): set the default search engine.
- `Default` (string): set the default search engine by name.
- `PreventInstalls` (boolean): prevent installing search engines from webpages.
- `Remove` (array of strings): hide built-in search engines by name.

## Examples

<PolicyExample policy="SearchEngines" />

### Adding an internal search engine as the default

This example adds a search engine for an intranet and makes it the default.
Firefox replaces the `{searchTerms}` placeholder in `URLTemplate` with whatever the user searches for.
With `Alias`, users can type `intranet`, followed by a space and their search terms, in the address bar to search with this engine, for example `intranet holiday policy`:

```json
{
"policies": {
"SearchEngines": {
"Add": [
{
"Name": "Intranet",
"URLTemplate": "https://intranet.example.com/search?q={searchTerms}",
"IconURL": "https://intranet.example.com/favicon.ico",
"Alias": "intranet"
}
],
"Default": "Intranet"
}
}
}
```

Firefox sets this engine as the default when the policy is first applied and whenever the `Default` value changes.
Users can choose a different default engine between these changes.

## Windows (GPO)

```
Expand Down
Loading