mozilla

Revision 125015 of Templates in Firefox 3

  • Revision slug: Templates_in_Firefox_3
  • Revision title: Templates in Firefox 3
  • Revision id: 125015
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[fr:Templates dans Firefox 3]] <<langbot>>

Revision Content

{{ Fx_minversion_header("3") }}

Templates have been significantly improved in Firefox 3. The key improvement allows the use of custom query processors to handle other types of datasources besides RDF. A new query syntax makes this possible. Built-in support for SQL (mozStorage) and XML datasources is also provided. A full description of the new features available for templates {{ mediawiki.interwiki('wikimo', 'XUL:Template_Features_in_1.9', 'is available') }}. ({{ Bug("285631") }})

Other template improvements

  • Relational conditions have been added to allow for more precise control over what results match a rule. This allows, for example, matching of results that start or end with certain strings, or that are before or after other values.
  • A flag, dont-recurse, has been added to prevent recursion from happening such that only one level of results are generated
  • APIs have been added to the template builder to retrieve a result object representing an output item.
  • The XUL sort service is more robust and sorts both content and non-content trees better. It also allows sorting of non-template built content. ({{ Bug("335122") }})

See also



{{ languages( { "es": "es/Plantillas_en_Firefox_3", "fr": "fr/Templates_dans_Firefox_3", "ja": "ja/Templates_in_Firefox_3" } ) }}

Revision Source

<p>{{ Fx_minversion_header("3") }}
</p><p>Templates have been significantly improved in Firefox 3. The key improvement allows the use of <a href="en/How_to_implement_custom_xul_query_processor_component">custom query processors</a> to handle other types of datasources besides RDF. A new query syntax makes this possible. Built-in support for SQL (<a href="en/Storage">mozStorage</a>) and XML datasources is also provided. A full description of the new features available for templates {{ mediawiki.interwiki('wikimo', 'XUL:Template_Features_in_1.9', 'is available') }}. ({{ Bug("285631") }})
</p>
<h3 name="Other_template_improvements">Other template improvements</h3>
<ul><li> Relational conditions have been added to allow for more precise control over what results match a rule. This allows, for example, matching of results that start or end with certain strings, or that are before or after other values.
</li><li> A flag, <code>dont-recurse</code>, has been added to prevent recursion from happening such that only one level of results are generated
</li><li> APIs have been added to the template builder to retrieve a result object representing an output item.
</li><li> The XUL sort service is more robust and <a href="en/XUL/Template_Guide/Sorting_Results">sorts</a> both content and non-content trees better. It also allows sorting of non-template built content. ({{ Bug("335122") }})
</li></ul>
<h3 name="See_also">See also</h3>
<ul><li><a href="en/Firefox_3_for_developers">Firefox 3 for developers</a>
</li></ul>
<p><br>
</p><p><br>
</p>
<div class="noinclude">
</div>
{{ languages( { "es": "es/Plantillas_en_Firefox_3", "fr": "fr/Templates_dans_Firefox_3", "ja": "ja/Templates_in_Firefox_3" } ) }}
Revert to this revision