You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 19 / collective.amberjack.core-1.1-2.lbn19.noarch

collective.amberjack.core-1.1-2.lbn19.noarch

Package Attributes
RPM  collective.amberjack.core-1.1-2.lbn19.noarch.rpm Architecture  noarch Size  431196 Created  2019/09/30 06:51:19 UTC
Package Specification
Summary The Amberjack layer
Group Application/Internet
License ZPL
Home Page http://pypi.python.org/packages/source/c/collective.amberjack.core/collective.amberjack.core-1.1.tar.gz
Description

How to create new tour

First of all you need to define the tour. Starting version 1.1 we are using configuration based style.

A tour is a .cfg file. It has an amberjack main section which has two options: title and steps - this is where you define tour steps:

[amberjack] steps = my_step1 my_step2 title = My first amberjack tour

there are also available two blueprints: 1. Step a step section is defined by collective.amberjack.blueprints.step and has several options:

  • title text url - step url definition xpath - xpath selector xcontent - xcontent selector microsteps - microsteps sections validators - tales expression validation

it looks like that:

[my_step1] blueprint = collective.amberjack.blueprints.step title = This is my first Step text = You should now know how to create a step section url = /mystep validators = python: context.isFolderish() xpath = '' xcontent = '' microsteps = microstep_1 microstep_2

  1. Microstep a microstep section is defined by collective.amberjack.blueprints.microsteps and it has several options:
    • idstep text description * selector

it looks like that:

[microstep_1] blueprint = collective.amberjack.blueprints.microstep idstep = menu_state text = This is my dummy microstep description = Now you should now how to define microsteps selector = #insert

Tour registration

Finally you have to register it. The only acceptable format is an archive (zip or tar) which contains one or multiple .cfg files (tours) Using zcml:

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
/usr/bin/python2.7  
rpmlib(CompressedFileNames)  
/bin/sh  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
collective.amberjack.core
Obsoletes
collective.amberjack.core-egginfo

Document Actions