cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: The Portal Basket
Date Tue, 16 Aug 2005 11:27:12 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/600.html

Document ID: 600
Branch: main
Language: default
Name: The Portal Basket (unchanged)
Document Type: Document (unchanged)
Updated on: 8/16/05 11:27:03 AM
Updated by: Helma

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 4713 bytes (previous version: 4716 bytes)
Content diff:
(8 equal lines skipped)
    
    <p>The sample portal that comes with the Cocoon distribution contains a working
    sample for the basket. So, you can test it out of the box and skip the next
--- chapter.</p>
+++ section.</p>
    
    <p>If you don't need the basket functionality have a look at the end of the next
    chapter to see what you can remove from the portal.</p>
    
--- <h1>Generel Configuration</h1>
+++ <h1>General Configuration</h1>
    
    <p>Each coplet that is able to be added to the basket, gets a button "add" in
    the window title. For rendering this title, you need to add the <em>basket</em>
    renderer to the render that is rendering your window. Add the following aspect
    to your <em>window</em> renderer:</p>
    
--- <pre>
--- &lt;aspect type="basket"/&gt;
+++ <pre>&lt;aspect type="basket"/&gt;
       </pre>
    
    <p>The basket uses a manager component that manages the persistence of the
    baskets. You have to add this component to your cocoon.xconf and configure the
    directory that is used to store the baskets accordingly:</p>
    
--- <pre>
---       &lt;component class="org.apache.cocoon.portal.coplets.basket.BasketManager"

+++ <pre>      &lt;component class="org.apache.cocoon.portal.coplets.basket.BasketManager"

                     role="org.apache.cocoon.portal.coplets.basket.BasketManager"&gt;
            &lt;parameter name="directory" value="D:/baskets"/&gt;
          &lt;/component&gt;
(14 equal lines skipped)
    accordingly. Add one of the following two attributes to the coplet to either
    allow to add the coplet or the content of the coplet to a basket:</p>
    
--- <pre>
--- &lt;attribute&gt;
+++ <pre>&lt;attribute&gt;
      &lt;name&gt;basket-link&lt;/name&gt;
      &lt;value xsi:type="java:java.lang.Boolean" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;true&lt;/value&gt;
    &lt;/attribute&gt;
(13 equal lines skipped)
    transformer listens for the <em>add-item</em> element and transform this into
an
    html link:</p>
    
--- <pre>
--- &lt;p xmlns:basket="http://apache.org/cocoon/portal/basket/1.0"&gt;
+++ <pre>&lt;p xmlns:basket="http://apache.org/cocoon/portal/basket/1.0"&gt;
    &lt;basket:add-item href="http://cocoon.apache.org"&gt;Add&lt;/basket:add-item&gt;
    &lt;/p&gt;
    </pre>
(9 equal lines skipped)
    You can use this generator in your pipeline to render the content of the current
    user basket.</p>
    
--- <p>This generator has also a management functionality buildin. By adding the
+++ <p>This generator has also a management functionality built in. By adding the
    parameter <em>admin-mode</em> with the value <em>true</em> to
the generator, the
    generator streams out the admin functions as XML. These functions allow to
    delete a basket for a user and to see all user baskets.</p>
(26 equal lines skipped)


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
Removed from collection: legacydocs
Added to collection: documentation

Mime
View raw message