I have a procedure that displays an image with caption. It also has an edit button and I would like that button to go to the tiddler and open it in edit mode.
This is the current procedure
\procedure displayICC(ICCTitle,ICCWidth:"100%")
<$list filter="[all[current]!tag[Image Link]]" >
<hr>
</$list>
<$transclude $variable="displayIonly" IOTitle=<<ICCTitle>> IOWidth=<<ICCWidth>> />
<br>
<$transclude $tiddler=<<ICCTitle>> $field="imageCaption" />
<br>
<$transclude $tiddler=<<ICCTitle>> $field="imageCitation" />
<br>
<$transclude $tiddler=<<ICCTitle>> $field="imageCopyright" />
<%if [{$:/TLS/State/EditMode!!editMode}match[true]] %>
<$list filter="[all[current]!tag[Image Link]]" >
<br>
<$button>
<$action-navigate $to=<<ICCTitle>> />
Edit Image
</$button>
</$list>
<%endif%>
\end
If I add the edit widget underneath the navigate widget, I see an edit field on the calling tiddler rather than going to the image tiddler and opening edit mode.
Is there a way of having a button edit a specified tiddler?
bobj
