Giter Club home page Giter Club logo

apostropheextraslotsplugin's Introduction

# Apostrophe Extra Slots Plugin for Apostrophe 1.5

For complete and extensive documentation of Apostrophe please visit
[trac.apostrophenow.org](http://trac.apostrophenow.org/wiki/ManualOverview). There you'll find a complete manual organized much more conveniently than is possible with a README file.

The Apostrophe Extra Slots Plugin contains several slots that are more specialized or complex than the slots bundled with Apostrophe.
In general, we regard these slots to be somewhat "experimental" and use the Extra Slots plugin as a way to cultivate slot types that 
may eventually mature to become part of the core set of Apostrophe slots.


Installation:

0. Enable the apostropheExtraSlotsPlugin in your project's projectConfiguration Class [ /config/projectConfiguration.class.php ] :

1. The Extra Slots Plugin requires some CSS and Javascript to fully function. Add these assets to your project level view.yml [ /apps/frontend/config/view.yml ] :

		stylesheets:
		  - /apostropheExtraSlotsPlugin/css/aExtraSlots.less
		javascripts:
		  - /apostropheExtraSlotsPlugin/js/aExtraSlots.js

2. Enable the modules for the slots you want to use in your project's settings.yml [ /apps/frontend/config/settings.yml ] :

		enabled_modules:
			- aBlogSlideshowSlot
			- aInsetAreaSlot
			- aInsetImageSlot
			- aMapSlot
			...

3. Add the slots to app.yml in the slot_types [ /apps/frontend/config/app.yml ] :

		a:
			### Apostrophe Slots
			slot_types:
				...
			  aInsetImage: Inset Image              # apostropheExtraSlotsPlugin Slot
			  aInsetArea: Inset Area                # apostropheExtraSlotsPlugin Slot
			  aBlogSlideshow: Blog Slideshow        # apostropheExtraSlotsPlugin Slot
			  aMap: Map                             # apostropheExtraSlotsPlugin Slot

4. Add the slots to an Area or Singleton Slot in a page template [ /apps/frontend/modules/a/templates/defaultTemplate.php ] :

		<?php a_area('example', array(
			'allowed_types' => array(
				'aRichText',
				'aInsetImage',
			),
		  'type_options' => array(
				'aRichText' => array(
					'tool' => 'Main',
				),
				'aInsetImage' => array(
					...
				),
				...

Note: Slot Options for the slots can vary a lot considering the different problems they aim to solve.
To get a sense of the slot options specific to the slot you're working with,
look in the plugin's /lib/actions/Base...SlotComponents.class.php file and you will see which options exist.

apostropheextraslotsplugin's People

Watchers

James Cloos avatar Thomas Glachant avatar Jérôme Weber avatar Raphael Bonini avatar Elliott Froigné avatar Manon Hernas avatar NIco avatar Anthony Lahlah avatar Nicolas Dewez avatar Aurélien G avatar Manon Lecomte avatar  avatar  avatar Dimitri Warez (Dimzeraw) avatar Jessy Lenne avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.