Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »


9. View extensions

To add additional content to existing views sometimes it is necessary to create 'viewExtensions' xml file (see View Tab Module or View Ribbon Group Module).

9.1. extension xml definition

View extension xml file must have structure:

<viewExtensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://schema.qcadoo.org/view" 
        xsi:schemaLocation="http://schema.qcadoo.org/view http://schema.qcadoo.org/view.xsd">

      // HERE YOU PUT VIEW EXTENSIONS

</viewExtensions>

9.2. ribbon extension

Ribbon extension must be defined as:

<ribbonExtension plugin="pluginIdentifier" view="viewName">

      // HERE YOU PUT RIBBON EXTENSIONS

</ribbonExtension>

Where:

  • pluginIdentifier - is a identifier of plugin with extending view
  • viewName - is a name of extending view

Ribbon extensions are definitions of ribbon groups to add to existing ribbon. For more information about ribbon group definition see 'ribbon groups section'.

9.3. window tab extension

Window tab extension must be defined as:

<windowTabExtension plugin="pluginIdentifier" view="viewName">

      // HERE YOU PUT WINDOW TAB

</windowTabExtension>

Where:

  • pluginIdentifier - is a identifier of plugin with extending view
  • viewName - is a name of extending view

windowTabExtension tag chould contains single window tab definition. For more information about window tab definition see 'tabbed window section'.

9.4. example

Here is example that extends product view with some fields and add some ribbon items:

<windowTabExtension plugin="pluginIdentifier" view="viewName">

      // HERE YOU PUT WINDOW TAB

</windowTabExtension>
  • No labels