×

Error message

  • Warning: array_merge(): Argument #2 is not an array in superfish_block_view() (line 924 of /var/www/rhizome/data/www/developers.contentglass.com/drupal/sites/all/modules/superfish/superfish.module).
  • Warning: array_merge(): Argument #1 is not an array in superfish_block_view() (line 1035 of /var/www/rhizome/data/www/developers.contentglass.com/drupal/sites/all/modules/superfish/superfish.module).

Folder structure

All of content glass widget inherent from the base object CGWidget.

When creating a new widget is recommend to organize the folders in the next structure for easy navigation and understanding.

  • Base folder
    • Manifest.js
    • Library folder
      • Widgets folder
        • widget 1 folder
          • widget1.js
          • HTML folder
          • CSS folder
        • Widget 2 folder
          • Widget2.js
          • HTML folder
          • CSS folder
      • widgetLibrary.js

There can be more folder and files under the base folder but this will be explained in other pages.

Before starting it's recommend to create the folder tree for easy quick file creation.