Google Data Visualization
We have one view module named GVS module for Google Datavisualization, but there is some limitations for creating graphs as we disired. The implementation of Google Datavisualization is very simple and we can directly implement by using tpl or custum module .
The steps for creating Google Datavisualizations are follows .
Steps 1 :
Call the JSAPI.
<script type="text/javascript" src="https://www.google.com/jsapi"></script>We call this in page.tpl.php or in the custum module
Steps 2 :
Load the visualization .
Read moreExport Display Suite settings
This documentation is written for the 7.x-2.x version of Display Suite.
Display Suite exposes all its settings (displays, fields and view modes) to CTools. This allows you to easily move the displays that you configured to another environment (e.g., from the development to the staging environment).
You can export Display Suite settings with the modules Features or the CTools sub module Bulk Export.
Export settings using Bulk Export
- Enable the module Bulk Export at Administration > Modules (admin/modules)
- Go to Administration > Structure > Bulk Exporter (admin/structure/bulk-export)
- Choose the vertical tab "Display Suite"
- Select all the elements that you want to export
- Enter a module name, e.g., "ds-settings"
- Click "Export". Bulk Export generates export code that needs to be placed in a module.
- Create a folder, e.g., "ds-settings" in the modules directory of your website. Copy and paste the export code into the respective files, e.g., "ds-settings.info", "ds-settings.module" and "ds-settings.inc".
You can now move this module to another environment (e.g., staging) and enable it there.
Read moreManage content editing forms
This documentation is written for the 7.x-2.x version of Display Suite.
Display Suite allows you to manage the display of content editing forms for entities (such as nodes, views, comments, users, et cetera). This can be useful if you want to provide the users of your website with a customized edit form.
When enabled Display Suite Forms takes over the Drupal core functionality that let you arrange the fields via the "Manage fields” tab.
Manage display of an editing form
- Enable the sub module Display Suite Forms at Administration > Modules (admin/modules)
- Go to Administration > Structure > Display Suite (admin/structure/ds)
- Click "Manage form" for the entity (e.g., "User") that you like to change
- In the vertical tab "Layout for ... in form" choose the desired layout template (e.g. "Two column") and click "Apply"
- Start arranging the layout by dragging fields to regions ("Header”, "Left”, et cetera).
- Save the changes
Note: if the module Field Group is installed you can place form elements inside containers like vertical tabs.
Control markup with field templates
This documentation is written for the 7.x-2.x version of Display Suite.
By default Drupal core wraps fields in multiple HTML elements, as e.g., in:
<div class="field field-name-field-size field-type-text field-label-above">
<div class="field-label">Size: </div>
<div class="field-items">
<div class="field-item even">34</div>
</div>
</div>Display Suite allows you to override this markup via the user interface by using field templates. This could result in the following markup for the example above:
<div class="label-above">Size: </div>
34 Enable field templates
To use Display Suite field templates:
- Enable the sub module Display Suite Extras at Administration > Modules (admin/modules)
- Go to Administration > Structure > Display Suite and click the secondary tab "Extras" (admin/structure/ds/extras)
- Check the option "Enable Field templates"
- Choose a Default Field Template (e.g., "Full reset" to remove all markup from a field)
- Click "Save configuration"
- Go to Administration > Structure > Display Suite (admin/structure/ds/layout) and choose "manage display” for the desired entity.
- Click the cogwheel left of the field that you want to change.
Add fields to a block
This documentation is written for the 7.x-2.x version of Display Suite.
Display Suite allows you to put certain fields inside a region that will be rendered as a block. This can then be managed via the Drupal core block administration.
Note: this works only for custom view modes of nodes. Preprocess fields will not be visible.
To add fields to a block:
- Enable the sub module Display Suite Extras at Administration > Modules (admin/modules)
- Go to Administration > Structure > Display Suite and click the secondary tab "Extras" (admin/structure/ds/extras)
- Select the vertical tab "Others"
- Check "Region to block"
- Click "Save configuration"
- Go to Administration > Structure > Display Suite (admin/structure/ds/layout) and choose "manage display” for the desired content type (e.g., "Article").
- Select a custom view mode (e.g., "Compact teaser")
- Ensure a layout is selected in the vertical tab "Layout for … in ..."
- Choose the vertical tab "Block regions"
- Enter a name for the region that will be rendered as a block
- Click "Save"
The region is now available in the manage display screen and you can assign fields to it.
Read moreManage the display of search results
This documentation is written for the 7.x-2.x version of Display Suite.
Display Suite can override the way that Drupal's (and Apache solr's) default search results are being displayed. This may be useful if you want e.g., to include images or file attachments in search results.
- Enable the sub module Display Suite Search at Administration > Modules (admin/modules)
- Go to Administration > Configuration > Search and metadata > Search settings (admin/config/search/settings)
- Enable "Display Suite Search" in the section "Active search modules"
- Choose "Display Suite Search" in the section "Default search module"
- Click "Save configuration"
The search results are now displayed using a view mode that is controlled by Display Suite.
Display Suite offers some advanced settings, such as:
- use an alternative view mode for results
- highlight the search keyword
- group results
To access the Display Suite Search settings go to Administration > Structure > Display Suite and click the secondary tab "Search" (admin/structure/ds/search)