02-13-2007 11:38 AM
02-13-2007 05:21 PM
02-14-2007 08:42 PM
there isn't a great way to do this at the moment. it's related to a feature i'm working on for the 2.1 release. please file a feature request at issues.alfresco.com in the WCM category.
02-14-2007 08:59 PM
there isn't a great way to do this at the moment. it's related to a feature i'm working on for the 2.1 release. please file a feature request at issues.alfresco.com in the WCM category.
ariel, is this an alfresco limitation? what is missing? I haven't played with the categories in the XFORMS impl enough to know.
From a XFORMS 1.0 perspective it seems possible. XFORMS 1.0 relates fields together in a slightly awkward way but its do'able
BINDINGS
———————–
<xforms:bind id="storyWebPresPagesImagesBinding" xforms:nodeset="images" >
<xforms:bind id="storyWebPresPagesImagesImageBinding" xforms:nodeset="image[position() != last()]" >
<xforms:bind id="storyWebPresImageNameBinding" xforms:type="string" xforms:nodeset="@name" />
<xforms:bind id="storyWebPresImageClassBinding" xforms:type="string" xforms:nodeset="@class" />
<xforms:bind id="storyWebPresImageParagraphBinding" xforms:type="string" xforms:nodeset="@paragraph" />
</xforms:bind>
</xforms:bind>
<xforms:bind id="presTemplatesBinding" xforms:nodeset="/story/templates/template">
<xforms:bind id="presTemplateNameBinding" xforms:type="string" xforms:nodeset="@name" />
<xforms:bind id="presTemplatePathBinding" xforms:type="string" xforms:nodeset="path" />
<xforms:bind id="presTemplateMultiPageBinding" xforms:type="boolean" xforms:nodeset="multipage" />
<xforms:bind id="presTemplatesResourceSlotsBinding" xforms:nodeset="resourceSlots">
<xforms:bind id="presTemplateResourceSlotsSlotBinding" xforms:nodeset="slot" >
<xforms:bind id="presTemplateResourceSlotsSlotNameBinding" xforms:type="string" xforms:nodeset="@name" />
</xforms:bind>
</xforms:bind>
</xforms:bind>
<xforms:bind id="presChoicesTemplateSlotsBinding" xforms:nodeset="/story/templateSlotOptions/option">
<xforms:bind id="presChoicesTemplateSlotsViewBinding" xforms:type="string" xforms:nodeset="@view" />
<xforms:bind id="presChoicesTemplateSlotsCodeBinding" xforms:type="string" xforms:nodeset="@code" />
</xforms:bind>
XFORM MARKUP
—————————-
<!– render template –>
<xforms:select1 id="TMPL-TEMPLATE" bind="storyWebPresPagesPageRenderTemplateBinding" ev:event="DOMActivate">
<xforms:label>Render Template</xforms:label>
<xforms:itemset bind="presTemplatesBinding">
<xforms:label bind="presTemplateNameBinding"/>
<xforms:value bind="presTemplateNameBinding"/>
</xforms:itemset>
</xforms:select1>
<!– template has pages –>
<xforms:output ref="/story/templates/template[@name=/story/webPresentation/renderTemplate]/multipage">
<xforms:label>Multiple Pages</xforms:label>
</xforms:output>
<!– image class –>
<!– ! WHERE IMAGE CLASS (SLOT NAME) DEPENDS ON THE RENDER TEMPLATE! –>
<xforms:select1 id="TWPRSS-PAGE-IMAGE-CLASS" xforms:bind="storyWebPresImageClassBinding">
<xforms:label>Image Class</xforms:label>
<xforms:itemset nodeset="/story/templates/template[@name=/story/webPresentation/renderTemplate]/resourceSlots/slot">
<xforms:label ref="@name"/>
<xforms:value ref="@name"/>
</xforms:itemset>
</xforms:select1>
<!– XML SAMPLE –>
<template name="Standard">
<resourceSlots>
<slot name="photoStoryTop"/>
<slot name="photoStorySidebar"/>
<slot name="photoStoryFlow"/>
<slot name="photoStoryBottom"/>
<slot name="photoCulturalSnapshots"/>
</resourceSlots>
</template>
<template name="Standard Without Sidebar">
<resourceSlots>
<slot name="photoStoryTop"/>
<slot name="photoStoryFlow"/>
<slot name="photoStoryBottom"/>
<slot name="photoCulturalSnapshots"/>
</resourceSlots>
</template>
02-14-2007 11:30 PM
02-16-2007 09:43 AM
08-09-2007 07:11 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.