Search:

Apache » Lenya
project logo
  • Project
  • Developer
  • Community
  • Version 2.0
  • Version 1.2
  • Version 2.0
    • FAQs
    • Installation
      • Download
      • Subversion Access
      • Install Instructions
    • Tutorials
      • Create a Publication
      • Create a Resource Type
        • Declaration
        • Creation
        • Presentation
        • Editing (One-Form)
        • Editing (BXE)
      • Implement a Usecase
        • Prerequisites
        • The Usecase
      • Setting up Eclipse
      • Proxying
        • Proxying
        • mod_proxy
        • mod_proxy_ajp
      • Best Practises
      • Production Checklist
      • Writing Tests
    • Concepts
      • Publication
      • Working with Documents
      • Authoring and Live mode
      • WYSIWYG
    • Technical Reference
      • Overview of Lenya Sitemaps
      • Repository
      • Access Control Specification
      • Usecase Framework
        • Overview
        • AbstractUsecase
      • Publications
        • Configuration
        • Publication Templating
      • Resource Types
      • Modules
      • Meta data
      • Protocols
        • lenya Protocol
        • lenya-document Protocol
        • site Protocol
        • lenyadoc Protocol
        • fallback Protocol
      • URLs and Links
        • URL Mapping
        • Link Management
      • Clustering
    • Core API
    • Core Modules
      • ac
        • Overview
        • API
      • acusecases
        • Overview
        • API
      • administration
        • Overview
        • API
      • cache
        • Overview
        • API
      • janitor
        • Overview
        • API
      • ldap
        • Overview
        • API
      • linking
        • Overview
        • API
      • observation
        • Overview
        • API
      • properties
        • Overview
        • API
      • sitemanagement
        • Overview
        • API
      • templating
        • Overview
        • API
      • usecase
        • Overview
        • API
      • workflow
        • Overview
        • API
    • Standard Modules
      • blog
        • Overview
        • API
      • bxe
        • Overview
      • cforms
        • Overview
        • API
      • collection
        • Overview
        • API
      • contactform
        • Overview
        • API
      • development
        • Overview
        • API
      • editors
        • Overview
        • API
      • export
        • Overview
        • API
      • fckeditor
        • Overview
        • API
      • kupu
        • Overview
        • API
      • languageselector
        • Overview
      • lenyadoc
        • Overview
        • API
      • linkcheck
        • Overview
        • API
      • links
        • Overview
        • API
      • lucene
        • Overview
        • API
      • migration
        • Overview
        • API
      • navigation
      • neutron
        • Overview
      • news
        • Overview
        • API
      • notification
        • Overview
        • API
      • opendocument
        • Overview
        • API
      • prettyprinting
        • Overview
      • profiling
        • Overview
      • resource
        • Overview
        • API
      • simplesite
        • Overview
        • API
      • sitetree
        • Overview
        • API
      • sourcerepository
        • Overview
        • API
      • svg
        • Rounded Corners
        • Resizing Images
        • API
      • tinymce
        • Overview
        • API
      • usecasedocument
        • Overview
        • API
      • webdav
        • Getting started
        • Monitoring
        • WebDAV Servers
        • API
      • xhtml
        • Overview
        • API
      • xopus
        • Overview

Current Event

Built with Apache Lenya

The xopus Module

Table of Contents
  • Introduction
  • Installation

Introduction

The xopus module contains the integration of the Xopus WYSIWYG editor.

Installation

  1. Download your preferred Xopus release (i.e. Xopus-2.1.79) from http://xopus.com.
  2. Follow the installation instructions to install it on your server (in this case we are unzipping to the Tomcat webapps/ROOT directory).
  3. Configure the Xopus context and path in (local.)build.properties, e.g.

    xopus.context=Xopus-2.1.79
    xopus.path=relative/path/to/tomcat/webapps/ROOT
  4. Set these same two parameters in modules/xopus/config/cocoon-xconf/input-modules/xopus.xconf.
  5. [optional] If you wish to use a resource type other than xhtml, create a resource type-specific XSLT file in $PUB_HOME/modules/xopus/xslt/{resource-type}.xsl.
  6. [optional] This applies only if you do step 5. Create a resource type-specific XSD schema file in $PUB_HOME/modules/xopus/resources/schemas/{resource-type}.xsd.
  7. TODO: Add the xopus module call to menu.xsp

    (Currently menu.xsp only recognizes usecases when creating the URL, we need to modify the stylesheet to accept lenya.module in addition to lenya.usecase. It should look similar to what is shown below.)

    Note by Andreas Hartmann: I don't think we should use a module URL but rather a usecase URL.

    menu.xsp:

    [...]
    <menu i18n:attr="name" name="Edit">
      <xsp:logic>
        String doctype = <input:get-attribute module="page-envelope" as="string" name="document-type"/>;
        if ("xhtml".equals(doctype)) {
        <block info="false">
          <item wf:event="edit" uc:usecase="bxe.edit" href="?"><i18n:text>With BXE</i18n:text></item>
          <item wf:event="edit" uc:usecase="editors.oneform" href="?"><i18n:text>With one Form</i18n:text></item>
          <item wf:event="edit" mod:module="xopus" href="?lenya.step=open"><i18n:text>With Xopus</i18n:text></item>
        </block>
        }
      </xsp:logic>
    </menu>
    [...]
  8. Build Lenya.
  9. Try to edit your document by adding ?lenya.module=xopus&lenya.step=open to the url and hitting enter. This will eventually be replaced by the menu entry in step 7.

Copyright © 1999-2011 The Apache Software Foundation. All rights reserved.

Apache Lenya, Apache, and the Apache feather logo are trademarks of The Apache Software Foundation.