Enabling editing for a set of Web pages

Enable editing on a Web page to make it possible to start an editing session on that page.

Before you begin

To perform this task, the following must be the case:

  • You must have access to the Template Builder client application.
  • You must have permission to edit the Page Template is used to render these Web pages. By editing the Page Template, you enable editing on all Web pages that are rendered using this Page Template.

You also need a thorough knowledge of SDL Tridion, including the Template Builder, Templates and Target Types. For more information about these topics, refer to the SDL Tridion product documentation.

Procedure

  1. Start the Template Builder client application and open the Page Template you use to create Web pages that you now want to enable editing for.
    Template Builder shows the Building Blocks of this Page Template.
  2. In the Building Blocks view, find the Template Building Block called Enable inline editing for Page and drag it directly under the Dreamweaver Template Building Block of the Template, or, if you do not use a Dreamweaver Template Building Block, directly under the Template Building Block that produces a package item called Output.
  3. Select Enable inline editing for Page and in the list of properties on the right, select SiteEdit Editor URL and set it to the the value http://<cme-hostname>/WebUI/Editors/SiteEdit/, where <cme-hostname> is the host name of the Content Manager Explorer Web site.
  4. Save and close this Page Template and close Template Builder.
  5. Access the Content Manager Explorer Web site and navigate to the Page Template you just modified. Open the Page Template.
  6. In the General tab, ensure that Enable for inline editing is selected, then save and close the Page Template.
  7. Publish the Page Template to your staging Web site by selecting the Page Template and selecting Publish in the Ribbon Home tab. This pops up a Publish dialog showing one or more Target Types to publish to. Select the check box of the Target Type that corresponds with your staging Web site. Then click OK to publish the Page Template to the staging site.
    The SDL Tridion suite now (re)publishes every Page item in the Content Manager that uses this Page Template to the Target Type you selected, resulting in a new set of editable Web pages.
  8. If you use your Page Template to produce ASP.NET Master Pages, also ensure that the following comment is inserted at a location of your choosing in the Master Page:
    <!-- SITE_EDIT_INIT -->

Results

All Web pages that were rendered with this Page Template now have a button that users can click to start an editing session. When they do, they see a ribbon toolbar.