Ticket #106 (closed defect: fixed)
Id of stub:itemframe not populated if stub:item nested in other tags
| Reported by: | mikey | Owned by: | nsteiner |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4.0 |
| Component: | XML/XSL view engine | Version: | SVN-trunk |
| Keywords: | Cc: |
Description
When nesting the stub:item tag in other tags in a stub:itemframe, the id param does not get populated into nested stub:item instances:
<stub:form send-to-page="shop">
<stub:itemframe id="shopData">
<stub:item name="id" type="text"/>
<stub:item name="title" type="text"/>
<stub:item name="url" type="text"/>
<ixsl:if test="/document/shopData/shop/@id">
<stub:item name="status" type="select">
<stub:option value="enabled">Aktiviert</stub:option>
<stub:option value="disabled">Deaktiviert</stub:option>
</stub:item>
</ixsl:if>
<stub:item name="action" type="submit" value="Speichern"/>
</stub:itemframe>
</stub:form>
When the xsl template for <stub:item name="status" type="select"> is applied, the id param is not set anymore, resulting in a failing include because for the label the include part _status is searched instead of shopData.status.
Change History
Note: See
TracTickets for help on using
tickets.
