How to use Content Templates

Last post 11-10-2004, 12:43 PM by BryanThrasher. 3 replies.
Sort Posts: Previous Next
  •  11-09-2004, 8:29 PM 2357

    How to use Content Templates

    How do you use Content Templates?  I see the four examples, but the only extra attribute I see is UNSELECTABLE.  Is that the extent of templates or is there more to it?
  •  11-10-2004, 9:23 AM 2364 in reply to 2357

    Re: How to use Content Templates

     

    Ok, I'm using the sample file editHTML.aspx to edit a template that I created.  Basically, it's a 3x3 table where some cells have the attribute UNSELECTABLE="ON" and some do not.  This works well. 

     
    I am not able to block the user from editing the Body tag.  I put UNSELECTABLE="ON" on the body tag, but it still lets me edit.  Is that a bug or a limitation?  I also tried creating a 100% height and width DIV on the page and set UNSELECTABLE="ON".  This block editing most of the page, but you can still type under the DIV.
     
    I am also working on what rights are necessary for saving the HTML file, but I have not worked that out.
  •  11-10-2004, 10:46 AM 2365 in reply to 2364

    Re: How to use Content Templates

    BryanThrasher,

     
    UNSELECTABLE Attribute specifies that an element cannot be selected.
     
    You need to use the contenteditable property as well.
     
    contentEditable sets or retrieves the string that indicates whether the user can edit the content of the object.
     
    For example:
     
    <div UNSELECTABLE="ON" contenteditable="false" style="border:0px dotted #ff0000;height:20px">This Heading is not editable....</div>
     
     
    Hope it helps.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-10-2004, 12:43 PM 2370 in reply to 2365

    Re: How to use Content Templates

    Thanks.

     
    Are there any other options to consider?  Is there documentation on these options?
View as RSS news feed in XML