|
|
|
[
Permlink
| « Hide
]
Dan Hardiker - 09/May/07 03:43 PM
Can you give me the macro markup, and html output that you want?
Extend mail-submit (which I want you to do anyway... to allow classes
. {mail-submit:src=/images/whatever.gif|alt=blah blah|class=thingy}<input type="image" src="/images/whatever.gif" alt="blah blah" class="thingy" onclick="FormMailNG.getInstance(this).submit();"> {mail-submit:blah blah}<input type="button" value="blah blah" onclick="FormMailNG.getInstance(this).submit();"> {mail-submit:value=blah blah|class=thingy}<input type="button" value="blah blah" class="thingy" onclick="FormMailNG.getInstance(this).submit();"> Might be nice to validate for the presence of alt, if src is specified... Fixed, but untested.
I've added a new macro {mail-submit-img} which requires src and alt parameters, and can also have cssClass and cssStyle params too. The src must start with either "http" for an absolute URL or "!/" for a relative path (the ! is taken off before output). A future nicety would be to be able to do src=SPKEY:Page Title^Image Name.png and have it resolve it to a link. As I've not done that in a long time, I'd have to look it up as I would rather not parse it myself. |
||||||||||||||||||||||||||||||||||||||||||||