T4 tag for Insert content link

Here’s a nice subtlety that I wasn’t aware of, mainly because I didn’t construct the initial templates that we use on the University of St Andrews website.

If you want to be able to use the Insert Content Link feature within the HTMLArea WYSIWYG editor then there needs to be the following T4 tag within the template that you’re using:

<t4 type="meta" meta="html_anchor" />

So, for example, a general content template (with no separate heading field) might look like:

<t4 type="meta" meta="html_anchor" />
<t4 type="content" name="Main body" output="normal" modifiers="" />

Up until now we’ve only had the second line of code and wondered why the Insert Content Link feature wasn’t working.

Documentation

This is outlined in the SiteManager 5.2 Administrator & Power User Guide on page 5-50, listed under “Output META Data”.

HTML Anchor – Enables linking between content items and sections. This tag must be present in a template if you want to create content or section links.

We must have missed that in our eagerness to get our hands on building templates.

You can build this, and other T4 meta tags, within the Template editor using the BUILD TAG tab.

Gareth J M Saunders (University of St Andrews)

There are no comments on this post.

Leave a Reply