c# - Add custom page editor buttons to a FieldRenderer's edit frame -
if have <sc:fieldrenderer> or related control in sublayout, , wrap in <sc:link> control, fieldrenderer have additional button edit link field, rather second wrapping editframe.
is possible other buttons added built-in field renderer controls in same manner rather using <sc:editframe> control?
for example, if used following markup:
good:<div class="example"> <sc:text runat="server" id="text" field="text" /> </div> is possible add custom buttons edit frame shown in page editor text control, without needing rely on editframe control?
<div class="example"> <sc:editframe runat="server" id="edit"> <sc:text runat="server" id="text" field="text" /> </sc:editframe> </div>
yes possible. first, find field item in cms. example you're field called text, pretend field definition item located @ /sitecore/templates/user defined/my sample template/sample section/text. on field definition item scroll down page editor buttons field , can add webedit buttons show in page editor selection of field. @ point may need define custom webedit button.
Comments
Post a Comment