Using Contribute with dynamic pages
231
Editing static content in dynamic pages
You can allow users to edit static content within dynamic pages and protect only the dynamic
portions of the page.
Contribute users cannot edit source code, nor can they edit anything outside the
<body>
and
<title>
tags of a page. This protects initialization scripts and include files from being edited. To
protect dynamic elements in the body of your page, consider the following precautions:
•
Use templates to block off dynamic parts of your page. For example, if you have a page that
incorporates dynamically generated content (such as
CFLOOP
in ColdFusion or repeating ASP),
you can make that page into a template, ensure that those regions of the template are locked,
and create an instance of the template. Contribute users can edit only within the specified
regions.
You may not want users to create new pages from these templates, or copy those pages. To
learn how to restrict users from creating new pages from your templates or copying those
pages, see
“Settings for new web pages” on page 210
.
•
By default, Contribute is set to allow unrestricted editing of non-template pages and to protect
scripts and forms from being edited. If you deselect the option that protects forms and scripts,
users can modify code embedded in your pages, such as
SCRIPT
tags, server-side includes, ASP,
JSP, ColdFusion, and PHP. This option also protects any tag with a nontext character in the
tag name, such as
ASP:MyTag
. However, Contribute may not be able to recognize and protect
custom tags, such as
myCustomTag
, and the data elements between ColdFusion
CFOUTPUT
tags
such as
#...#
.
Users are able to edit plain HTML enclosed in conditional tags (such as the content between
CFIF
and
CFELSE,
and other HTML container tags such as
CFOUTPUT
).
For more information, see
“Setting page-editing and paragraph settings” on page 207
.
•
Limit editing to text-only. Select this option in the Editing category of the Edit
Role Name
settings dialog box to limit users to only editing and formatting text. For any page not
protected by a template, users can edit only text and common text formatting tags (such as
b
,
font
,
span,
and so on.). No other tags can be selected or deleted. However, HTML content
between tags may be editable.
For more information, see
“Setting page-editing and paragraph settings” on page 207
.
Содержание CONTRIBUTE 3 - USING AND ADMINISTERING...
Страница 1: ...CONTRIBUTE 3 Using and Administering Contribute...
Страница 8: ...8 Contents...
Страница 10: ......
Страница 20: ...20 Chapter 2 Getting Started...
Страница 90: ...90 Chapter 6 Working with Text...
Страница 162: ...162 Chapter 11 Publishing Your Page...
Страница 164: ......
Страница 232: ...232 Chapter 14 Troubleshooting...
Страница 234: ......
Страница 240: ...240 Appendix A Windows Keyboard Shortcuts...
Страница 246: ...246 Appendix B Macintosh Keyboard Shortcuts...
Страница 256: ...256 Index...