0.0.6 • Published 6 years ago

gc-hero-widgets v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

HERO WIDGET

An Apostrophe CMS module to display a "hero". A hero is a full width banner possibly containing a headline or brief strapline. Usually it is displayed as the first item on a web page.

Install

From within your apostrophe project

npm install --save gc-hero-widgets

Configuration

In app.js

modules: {
  'gc-hero-widgets': {},
  // ... other modules
}

In your template

{{ apos.area(data.page, 'body', {
    widgets: {
      'gc-hero': {}
  }
}) }}

Remember to replace data.page with the appropriate context, and body with the correct area name for your site.

By default, the hero allows you to choose apostrophe-rich-text, apostrophe-images, and apostrophe-video widgets. You can override the available options by creating the file lib/modules/gc-hero-widgets/views/widget.html and using something like the following:

{% extends 'widgetBase.html' %}

{% block heroContent %}
  {{ apos.area(data.widget, 'content', {
    widgets: {
      'your-own': {},
      'choice-of-widgets': {},
      'go-here': {}
    }
  }) }}
{% endblock %}

Contributing

Please contribute ideas, issues and improvements at the GitHub repository.

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago