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 the Template Builder, Templates and the publishing framework.
Procedure
- 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.
- 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.
- Only if you use the deprecated legacy publishing framework. 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. If you use the new publishing framework, you can leave this field empty.
- Save and close this Page Template and close Template Builder.
- Access the Content Manager Explorer Web site and navigate to the Page Template you just modified. Open the Page Template.
- In the General tab, ensure that Enable for inline editing is selected, then save and close the Page Template.
- 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.
Tridion Sites 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.
- 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:
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.