Ejemplo n.º 1
0
 /// <summary>
 /// Creates an Edit Frame using the Default Buttons list
 /// </summary>
 /// <param name="dataSource"></param>
 /// <returns></returns>
 public GlassEditFrame BeginEditFrame(string dataSource)
 {
     return(GlassHtml.EditFrame(string.Empty, GlassEditFrame.DefaultEditButtons, dataSource, this.Output));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns an Sitecore Edit Frame
 /// </summary>
 /// <param name="model">The model of the item to use.</param>
 /// <param name="title">The title to display with the editframe</param>
 /// <param name="fields">The fields to add to the edit frame</param>
 /// <returns>
 /// GlassEditFrame.
 /// </returns>
 public GlassEditFrame BeginEditFrame <T>(T model, string title = null,
                                          params Expression <Func <T, object> >[] fields)
     where T : class
 {
     return(GlassHtml.EditFrame(model, title, Output, fields));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Begins the edit frame.
 /// </summary>
 /// <param name="buttons">The buttons.</param>
 /// <param name="dataSource">The data source.</param>
 /// <returns></returns>
 public GlassEditFrame BeginEditFrame(string buttons, string dataSource, string title)
 {
     return(GlassHtml.EditFrame(title, buttons, dataSource, this.Output));
 }