![content control in microsoft word content control in microsoft word](https://learn.microsoft.com/en-us/office/client-developer/word/media/dk2_wordcc_fig08.jpg)
Map the contents of a content control to data in a custom XML part. This makes templates more robust than in previous versions. Or, as another example, you can also lock a content control that you have placed within a template document so that a user does not accidentally delete the content contained in the content control. This is useful if, for example, you have copyright information in a template that the user should be able to read but not edit. Each content control can be restricted, so that it cannot be deleted or edited. Restrict the ability to modify content controls within a document. In this way, you can build a template with predefined block types. Similarly, if you want a section of a template to display an image, create a picture content control in that area. For example, if you want a region of your template to be a calendar, you insert a calendar content control in that area of the document, which automatically determines what that block of content does. Each content control takes up a portion of a document and, as the template author, you can specify what each region does. Examples of types of structured regions (or content controls) are combo boxes, pictures, text blocks, and calendars.ĭetermine the behavior of content controls. Each structured region has its own unique ID so that you can read from and write to it. Specify structured regions in a template. Content controls enable you to author templates that insert well-defined blocks into your documents. However, they are much more powerful, flexible, and useful because they enable you to create rich, structured blocks of content. In some cases, content controls might remind you of forms. Individual content controls can contain content such as dates, lists, or paragraphs of formatted text. However, the problem with this is that if I need to update the template in the future and I use the template in 20 different document libraries, I'll have to remember to update the template in 20 different places.In this article What Are Content Controls?Ĭontent controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. The next time I open it, it opens in Word App. If I (still) configure SharePoint to open documents in Desktop Apps, the file will open as Word Online the first time - and that fixes the problem. If I create a new template by using "Add Template" from the "New"-menu, things works better. Is it possible to make Word App store the new file the right place without asking the user where to store it? I'll have to browse to the document library to store it the correctly. It doesn't know where to store the file, so it just suggests the root of OneDrive. When I create a new document based on the template, the Word App opens.
![content control in microsoft word content control in microsoft word](https://i.pinimg.com/736x/06/bc/56/06bc565fdadcaa9f4652c001ef9a08c2.jpg)
The problem comes when I configure the document library to use desktop apps.
![content control in microsoft word content control in microsoft word](https://thegeekpage.com/wp-content/uploads/2022/07/DEveloper-Tab-Content-Control-Properties-min.png)
I create a new word document based on the template, and I can save it with a new file name and it will be stored in the document library. When using Word Online, everything works fine. And as expected, I have this template in the "new" button in the document library. Have created a document library and enabled "allow management of content type". I have created a content type on tenant level that contains a template word document.