Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point contextExtension

Extension allowing to register a new ContentExtensionFactory that will be used to add custom objects inside the rendering context.

Contribution Descriptor

Existing Contributions

  • nuxeo-template-rendering-core-7.10-HF02.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="contextExtension" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Adds Repository features in the context
          <ul>
            <li>core.getParent()</li>
            <li>core.getChildren()</li>
          </ul>
        </documentation>
    
        <contextFactory class="org.nuxeo.template.context.extensions.CoreExtensionFactory" name="core">
        </contextFactory>
    
      </extension>
  • nuxeo-template-rendering-jaxrs-7.10.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="contextExtension" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Adds helper function to manage REST resources urls
          <ul>
            <li>jaxrs.getResourceUrl(resourceName)</li>
          </ul>
        </documentation>
    
        <contextFactory class="org.nuxeo.template.jaxrs.context.ExtensionFactory" name="jaxrs">
        </contextFactory>
    
      </extension>