Hi!
I'm trying to replace the existing xhtml sample pages with custom ones.
The radio button in the create screen when creating a new document
and the comment in
.../xhtml/confi/cocoon-xconf/resource-type-xhtml.xconf
lead me to the assumption that there can be several samples per
ressource type (e.g. 1-col, 2-col and 3-col).
I now patched cocoon.xconf with my own version of resource-type-
xhtml.xonf containing:
[...]
<sample-name name="Two Column Layout">fallback://lenya/modules/xhtml/
samples/xhtml-2col.xml</sample-name>
<sample-name name="One Column Layout">fallback://lenya/modules/xhtml/
samples/xhtml.xml</sample-name>
<sample-name name="One Column with highlights">fallback://lenya/
modules/xhtml/samples/xhtml-highlights.xml</sample-name>
[...]
This results in three radio buttons on the create doc screen with the
correct labels - so far encouraging.
Now several problems I have encountered:
- When I submit the form the same layout is taken no matter which one
I click on before.
- When I submit the form with invalid values, the chosen sample does
not stay it jumps back to the top one.
- The order of the samples seems somewhat random (not the same order
a written in the .xconf patch file.
- Now idea how to markup which sample is the default sample
checked="checked"
Thank You for help,
Jürgen Ragaller
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]