MozillaZine

Contents.rdf

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 04:28, 19 March 2005
Moogle (Talk | contribs)
(For content)
<-- Previous diff
Revision as of 15:07, 17 April 2005
Asqueella (Talk | contribs)
(Gecko 1.8 info)
Next diff -->
Line 1: Line 1:
 +'''contents.rdf''' files were used to register chrome packages and overlays before Gecko 1.8 (Firefox/Thunderbird 1.1). Gecko 1.8 applications still support contents.rdf for backwards compatibility, but a new, simpler file format is preferred - chrome.manifest. See [http://www.mozilla.org/xpfe/ConfigChromeSpec.html "Configurable Chrome" document] at mozilla.org for more information.
 +
==Example contents.rdf files== ==Example contents.rdf files==

Revision as of 15:07, 17 April 2005

contents.rdf files were used to register chrome packages and overlays before Gecko 1.8 (Firefox/Thunderbird 1.1). Gecko 1.8 applications still support contents.rdf for backwards compatibility, but a new, simpler file format is preferred - chrome.manifest. See "Configurable Chrome" document at mozilla.org for more information.

Contents

Example contents.rdf files

For content

See Overlays for more information. myext should be your extension's short name.

<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
  <Seq about="urn:mozilla:package:root">
    <li resource="urn:mozilla:package:myext"/>
  </Seq>

  <Description about="urn:mozilla:package:myext" chrome:name="myext"/>
<!-- additionally for Mozilla Suite and old Firefox/Thunderbird versions include:
	chrome:extension="true"
	chrome:displayName="My Extension's Long Name"
	chrome:author="Me"
	chrome:authorURL="http://myext.com/"
	chrome:description="An example extension"
	chrome:settingsURL="chrome://myext/content/"
-->

  <Seq about="urn:mozilla:overlays">
    <li resource="chrome://browser/content/browser.xul"/>
  </Seq>

  <Seq about="chrome://browser/content/browser.xul">
    <li>chrome://myext/content/overlay.xul</li>
  </Seq>
</RDF>

For locales

For skin