Playing around with this post I tried to use framed boxes on a doublesided document but there is a strange issue.
Why left boxes are not centered in (outer)margin like right ones ?
Here is a minimal example:
\setuppagenumbering[alternative=doublesided]
\setuplayout[width=fit,
height=270mm,
rightmargin=60mm,
rightmargindistance=5mm]
\defineframedtext[sideboxframed][frame=on,
framecolor=black,
rulethickness=1pt,
width=5cm,
offset=overlay,
align=normal]
\defineuserdataalternative[enumeration:sidebox][renderingsetup=sidenote:sidebox]
\startsetups[sidenote:sidebox]
\margindata[inouter]{
\startsideboxframed
\getinlineuserdata
\stopsideboxframed
}
\stopsetups
\defineuserdata [sidebox] [alternative=enumeration:sidebox]
\starttext
\dorecurse{2}{\input knuth}
\startuserdata[sidebox]
\input ward
\stopuserdata
\dorecurse{2}{\input knuth}
\startuserdata[sidebox]
\input ward
\stopuserdata
\dorecurse{2}{\input knuth}
\startuserdata[sidebox]
\input ward
\stopuserdata
\dorecurse{2}{\input knuth}
\startuserdata[sidebox]
\input ward
\stopuserdata
\stoptext
\showframe
to your example you can see the frame if left aligned in the margin area on both sides.