Hi all
The following code does not work properly for me. Therefor I am
wondering if some of you can reproduce the behavoir described
in the steps 1-5 below. Maybe it's a bug ...
<div id="teaser">
<cms:ifNotExisting contentNodeName="productTeaser">
<cms:editButton label="Add Product Image"
paragraph="samplesTextImage" contentNodeName="productTeaser" />
</cms:ifNotExisting>
<cms:ifExisting contentNodeName="productTeaser">
<cms:editBar deleteLabel="Delete Teaser"
contentNodeName="productTeaser" paragraph="samplesTextImage" />
<c:set var="imageurl"><cms:out contentNodeName="productTeaser"
nodeDataName="image" /></c:set>
<c:set var="alt"><cms:out nodeDataName="imageAlt"
contentNodeName="productTeaser" /></c:set>
<c:if test="${alt == ''}">
<img src="${pageContext.request.contextPath}${imageurl}"
alt="${imageurl}" />
</c:if>
<c:if test="${alt != ''}">
<img src="${pageContext.request.contextPath}${imageurl}"
alt="${alt}" />
</c:if>
</cms:ifExisting>
</div>
1. Hitting the button "Add Product Image" produces the following log
entry:
"13:22:11,003 WARN [Store] Looking for a dialog using the
paragraph name
instead of the dialog name.
Dialog path changed to samples/mainColumn/textImage. Please fix me!"
2. Adding img to the content: no problem.
A new entry in repositories/website/workspaces/default/blobs get
created
3. Deleting the image "Delete Teaser"-button:
Hitting the "Delete Teaser"-button will remove the img and display
the
"Add Product Image"-button again.
But the blob still exists in the repository! Shouldn't it get
removed as well?
4. Repeat step 2.
5. Deleting the image "Edit"-button:
Hitting the "Edit"-button will produce the same log entry as for
step 1.
Hitting the Image tag and hitting the "Remove file"-button and
saving afterwards
does not give me the same result step 3.
<cms:ifExisting contentNodeName="productTeaser"> gets evaluated as
true and therefor
<cms:editBar deleteLabel="Delete Teaser" ...
still gets displayed on the page. So there is something wrong her.
The previous "partial" deleted image will obviously produce silly
code for the public page
<div id="teaser"><img alt="" src="/magnolia22"/></div> as the
needed date got deleted bevor.
And again - the blob still exists in the repository!
This is for Version: 2.2-SNAPSHOT
Build: $Revision: 1404
Regards
- Andreas
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------