You are here: Home Plone products collective.amberjack.core

collective.amberjack.core (1.1)

1
by Olha Pelishok last modified 2010-11-08
0.0
0.0
0.0
0.0
Released on 2010-11-05 by Andrew Mleczko for Plone 3.0 under LGPL - GNU Lesser General Public License available for All platforms.
Software development stage: stable
Collective Amberjack core functionality
collective.amberjack.core

This package provides core functionality for collective.amberjack package.

Be aware that series 0.9.x is compatible with Plone3, series 1.x is compatible with Plone4.

How to create new tour

First of all you need to define the tour.

A tour looks like that:

{'tourId': u'example_tour',
'title': _(u"Example tour"),
'steps': <steps>}

a <steps> looks like that:

({'url': u'/',
'xpath': u'',
'xcontent': u'',
'title': _(u"Some title"),
'text': _(u"Some text"),
'steps': ({'description': _(u"Some description"),
'idStep': u'',
'selector': u'',
'text': u''},
...
)
},)

Steps parameters:

  • the description for the user (use [] to <span class="ajHighlight">highlight</span> parts),
  • the step id, [see ajStandardSteps section below]
  • an optional selector
  • an optional text used by the step

An example:

>>> add_folder = {
>>> 'url': u'/',
>>> 'xpath': u'',
>>> 'xcontent': u'',
>>> 'title': _(u"Create a new folder"),
>>> 'text': _(u"Folders are ..."),
>>> 'steps': ({'description': _(u"Click the [Add new...] drop-down menu."),
>>> 'idStep': u'menu_add-new',
>>> 'selector': u'',
>>> 'text': u''},
>>> {'description': _(u"Select [Folder] from the menu."),
>>> 'idStep': u'new_folder',
>>> 'selector': u'',
>>> 'text': u''})}
>>>
>>> ajTour = {'tourId': u'basic01_add_a_folder',
>>> 'title': _(u'Add a Folder'),
>>> 'steps': (add_folder,
>>> )}

Then you have to register it in zcml:

<configure
xmlns:collective.amberjack="http://namespaces.plone.org/collective.amberjack.core">
<collective.amberjack:tour
tourdescriptor=".example_tour.ajTour"
/>
</configure>
Document Actions
Powered by Plone