Hi,
we're using bureaucracy to create new pages and also add a picture like this:
<form>
action template myns:mytemplate otherns:
fieldset "New Page" /^[^\/:]+$/
textbox "Pagename" @
textbox "Photo" "=noimage.jpg" !
....
Corresponding Template:
===== @@Pagename@@ =====
{{:otherns:@@Photo@@?100|@@Pagename@@}}
...
This works like a charm. Of course only if the picture was uploaded to the correct namespace with Media Manager, if no filename is put into the textbox "noimage.jpg" will appear.
Now it should be possible to add another picture. But instead of a placeholder, no picture at all should appear in the generated page if the users does not put a filename into the textbox.
The culprit seems that the image link is already in the template. Is it possible to make an additional link completely optional and wipe the link if no filename is put into the textbox in the first place?
Thanks in advance!