Output the current page’s URL

Here’s a feature of Site Manager that we’d not come across until now, and which isn’t particularly intuitive which is why I’m blogging about it.

The problem

We simply needed a way for Site Manager to output the URL of the current section. We knew about the section details navigation object but couldn’t work out how to tell it to use the current section rather than specifying a specific section.

t4-nav-sectionpath

The tooltip for the Section option says:

If the section method is chosen above, then the item will display the details of the section specified by ID here. If the ID is set to ZERO, the current section will be used for generating output.

Which is fine but we couldn’t work out how to set the ID to ‘ZERO’. We emailed T4 client support who, as usual, were very helpful and pointed us to this announcement on the T4 Extranet: Output the URI of the current page.

The solution

It turns out what this means is simply don’t select a section.

About these ads

About Gareth J M Saunders

Hi, I'm Gareth J M Saunders, 6' 4", married to Jane, father of 3 boys (twins and singleton), I'm a priest in the Scottish Episcopal Church, employed as the Web Architect at the University of St Andrews. My main interests are HTML, CSS (inc. frameworks), jQuery, Information Architecture and Agile development.
This entry was posted in SiteManager and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s