Silva
Silva 2.1 Documentation

Getting started

Overview

Silva features

What’s new in Silva 2.1

Log in

Navigation tour

Author – basic

Adding content

Content Types

Using the Kupu editor

Previewing a document

Submitting for publication

Author – advanced

Adding metadata

Settings Screen

Document versioning

Content organization

Importing content

Importing spreadsheet data

Exporting content

Forms editor

Navigation – advanced

Access Keys

WebDAV

Editor

Publishing

Subscription management

Atom and RSS feeds

Chief Editor

Exporting content

Roles and permissions

Assigning roles

Groups management

Restricting public access

Addables configuration

Manager

Manager login

Zope Level Management

Adding Users

Subscription configuration

External sources: SQL, CSV, and Code Sources

location Code Source Service

Code Source HowTo

Calling Code Sources from templates

Email Notifications and Site Membership

Site design and templates

Accessibility Links in Silva

Public API of Silva

Internationalization

File System Storage

Maintenance Notes for Managers

Quota restriction

Upgrade Procedure

Silva Docs Index

Search

print subscribe envelope

Code Source Service

In order to use code sources the Code Sources service (service_codesources) must be available. If you have a fresh Silva installation you’ll need to activate the Silva External Sources extension in the Extensions Service. Then the Code Sources service will be appear in Silva Services.

If you have an existing Silva instance with External Sources active but you don’t see the Code Sources service you must refresh Silva External Sources in Service Extensions. This will install the Code Sources service.

Navigate to the Code Sources service (Fig.1).

Code Source Service

Fig.1. Code Sources listed in the Code Source Service

To make a code source available for Authors, copy the code source and paste it in the Silva root or a deeper level of the site. Then the code source will be listed in the select list of the ‘external source’ toolbox’s of the editor and Authors can insert it into documents.

The sources that appear in the toolbox are those that are found in the current path. The toolbox uses acquisition to locate code sources, climbing up the content tree from the current location. Code sources elsewhere, not in the path, will not appear. If two code sources with the same id are at different levels in the path, only the first one found (the lower one) will be listed. This makes it possible to have local variants of the same code source.

The code sources in the service will be updated whenever the External Sources extension is refreshed. If a new Silva version has been installed this may update existing sources and may make new code sources available.

A Manager can modify a code source. This should only be done after it’s been copied elsewhere in the site, otherwise your changes will be lost when the extension is refreshed. You’ll need to track and backup your changes.

For Developers it’s possible to add custom code sources which will appear in the Code Source service. Please refer to the code of the SilvaExternalSources product’s ‘install.py’ file to do this.

© Copyright 2002-2012 Infrae.
All rights reserved. mail