Adding an EDIT button to a style

This is, as far as I know, an undocumented feature that we find really useful at St Andrews: the edit-page T4 tag.

This is something that Duncan from Strathclyde kindly shared with us when we first had SiteManager installed and it’s been a really useful function.

This code sits in the footer code within our SiteManager styles

<t4 type="edit-page" text="Edit" />

Text

When SiteManager publishes this out it displays as a link, with whatever text you have specified in the tag, such as this:

Screenshot of edit link

URL

The URL for the link is the unique ID of that section, e.g.

../terminalfour/SiteManager?ctfn=content&fnno=30&sid=58

In other words when clicked it opens the editing page within SiteManager for that section, allowing you immediate access to edit the content, without having to first open SiteManager, then navigate using the Site Hierarchy to the section and modify it there. This method is much, much quicker.

Permissions

If you’re not already logged in the system will prompt you to log in. Once you’ve logged in if you don’t have permission to edit that content you’ll simply be informed that you cannot edit it.

Quick Login

I personally often use this as a quick way to log in to SiteManager without having to remember the login URL.

I hope you find this useful.

Gareth J M Saunders (University of St Andrews)

3 Responses

  1. hi, many thanks for this i regularly check this site as there are always some useful tips within.

  2. Hey! We specced that first… just didn’t spec docs too LOL

  3. Apologies Duncan, I’ve now updated the post and credited you with this.

Leave a Reply