Procedure 3: Linking to a specific place within a T4 webpage (includes same-page links)
Advisory
The information on this page is only applicable if you're editing the University webpages using T4. It presumes that you have already completed the beginners and advanced level of the T4 basic training (a link for staff only - opens in new window).
Are you in the right place?
This procedure is for linking to a specific place within a T4 webpage.
If you want to:
- simply link to another T4 page, follow procedure 1;
- link to a modal (pop-up window), follow procedure 2.
The procedure doesn't apply to documents in the Media Library.
Preparation
Page location
The content you're linking to will need to be in T4; if it's not then you should use Procedure 9: Linking to a specific place within a page or document hosted outside T4 instead.
If you don't know whether it's in T4, don't rely on webpage appearance to guide you, as sometimes a page can look as though it's in T4 when it isn't. Checking first can save you from wasting time hunting in T4's navigation for a page that isn't there.
To check, you can use our content locator.
Template set-up
The specific item of content that you're linking to will need to be in a separate template to the one you're linking from. This is naturally the case when you're linking to a different T4 page, but it's also true if you're linking within the page you're currently editing.
Clicking the link will take the reader directly to the start of content within that other template. If that template contains a lot of content, and the element you want to bring to your readers' attention is not at or near the beginning of it, you may wish to divide it into separate templates first.
How to create this type of link
The method to use will depend on the template you're using. If you're not sure which method to use, refer to template support.
You may find other ways of creating this type of link beside the ones listed here, but Methods A and B should be used whenever possible, as they're superior to other techniques in reducing the risk of broken links.
Method A (dynamic link): Using the content editor
Difficulty level: Foundation
- What do you want to use as link text?
- Text of your own choice: go to step 2.
- The name of the content you're linking to: go to step 4.
- Type your link text into the editing window of the template you want to link from.
- With your mouse, select (highlight) the link text you've just created.
- Click on the 'Insert/edit link' icon in the editing ribbon of the editing window.
- Select 'Insert content link'.
- In the site navigation that appears, select the page you want to link to. (This will be the page you're currently editing if you're linking to a location within that page.) You can type the name of the page into the filter box if you're having difficulty locating it in the site structure.
- When you've selected your page, you'll then see the list of its content (templates). Select the one you want to link to.
- Save and approve your edit.
- Preview your edit to check that the link takes the reader to the intended place.
Method B (dynamic link): Using a selection button
Difficulty level: Foundation
- Click the 'Add content link' button.
- In the site navigation that appears, select the page you want to link to. (This will be the page you're currently editing if you're linking to a location within that page.)
- You'll then see the list of content (templates) for your chosen page. Select the one you want to link to.
- Save and approve your edit.
- Preview your edit to check that the link takes the reader to the intended place.
Method C (static link): Entering a web address
Difficulty level: Advanced. If you need help with this method, please email the web team at digitalteam@exeter.ac.uk and they will be happy to create the link for you.
This method is not recommended, but it's included here as it's the most reliable way to link to a specific place within a T4 webpage if you're linking from one of the following templates:
- Carousel entry (approved responsive template)
- Carousel interface (recruitment template)
- Carousel panel (recruitment template)
We recommend that you use a different template to create this type of link on your page if possible, but if you need to link from one of these three templates, you can do so following the method here.
It works by linking directly to the unique identifier (ID) that T4 assigns to a template, so the steps here involve looking at the code of a webpage, but only to find the ID number.
- Go to the live version of the page you want to link to.
- Right click on the page and select 'View page source'. A new tab or page will open displaying the code of the page. You can't cause any harm to the code in this environment, so don't worry that you might edit something by mistake.
- Press CTRL and F. The 'find in page' box will appear. Type the text that you want to link to so that you can locate it within the page code.
- From the location you've found, scroll up slowly until you come to the first line that looks like <span id="d.en.12345"></span> ('12345' here is an example number).
- In the URL box of your template, type the web address of the page you want to link to, followed by a hashtag and the id you located. For example:
https://cahrt.exeter.ac.uk/theology/research/#d.en.97542. - Save and approve your edit.
- Preview your edit to check that the link takes the reader to the intended place.
Notes
As this type of link is not dynamic, the link will break if the web address changes. This will happen if:
- the page you're linking to is moved to a different location.
- the page's containing folder is renamed.
- the item of content is moved to a different page.
For these reasons you should periodically check the link to make sure it still works. (If you're creating a link for someone else, please advise them of this.)
- the page you're linking from is moved or renamed.
- the content you're linking to is renamed, or moved to a different location (T4 list order) on the same page, because T4 is using its ID number (rather than a name) to locate it.
If you're familiar with using in-page anchors, Method C is a more stable alternative, as it's easy for someone to delete an anchor by mistake, whereas the ID is unaffected by content edits.
Template support
The templates listed below all support this type of link. The tables will show you which method to use for each template field.
Note that some of the fields state 'internal page'. 'Internal' here refers to T4 rather than the University, so 'internal page' means a page hosted in T4, and University webpages hosted by other platforms don't fall into this category.
| Template | Field | Method |
|---|---|---|
| Accordion pane | Pane content | A |
| Additional quote | Quote | A |
| Quotee name | A | |
| Call to action links | Link url 1-3 (internal page) | B |
| Carousel entry | Link URL | C |
| Feature box | Text | A |
| Panel header link (internal page) | B | |
| Generic highlight button | Button URL (internal page) | B |
| Highlight content panel | Text | A |
| Quotee name | A | |
| Messages billboard | Msg URL 1-4 (internal page) | B |
| Modal window | Text | A |
| Page structure v1 | Content | A |
| Page text | Content | A |
| Panel | Text | A |
| Full panel link (internal page) | B | |
| Profile panel | Description | A |
| Profile page link | B | |
| Profiles item set | Profile text 1-8 | A |
| Profile link URL 1-8 | B | |
| Quote | Quote | A |
| Quotee name | A | |
| Tab | Tab content | A |
| Tabs container | Tab 1 content | A |
| Video embed | Description | A |
| Template | Field | Method |
|---|---|---|
| Accommodation residence filter panel | Link (internal page) | B |
| Accordion panel | Content | A |
| Accordion panel for Funders/Faculties (PGR) | Content | A |
| Accordion panel for Funding list (PGR) | Content | A |
| Campaign landing page v2 | Header KSPs | A |
| Header KSPs footnotes | A | |
| Text above form | A | |
| Overview text | A | |
| KSP1-4 text | A | |
| KSP footnotes | A | |
| Carousel 1-4 text | A | |
| Optional text | A | |
| Panel 1-4 text | A | |
| Optional button link (internal page) | B | |
| Carousel interface | Link URL | C |
| Carousel panel | Link URL | C |
| Carousel panels set | Panel 1-4: text | A |
| Panel 1-4: Full panel link (internal page) | B | |
| Carousel panels set interface | Panel 1-4: text | A |
| Panel 1-4: Full panel link (internal page) | B | |
| Gallery image | Image caption | A |
| Hero section page header | Text | A |
| Modal window | Text | A |
| Page structure v2 | Content | A |
| Page text | Text | A |
| Panel | Text | A |
| Full panel link (internal page) | B | |
| Panel & Modal Combo | Panel Text | A |
| Modal Text | A | |
| Panel blog feed | Text | A |
| Panel set blog feed | Text | A |
| PG: On-demand video | Text | A |
| Profile set | Profile 1-6 text | A |
| Quote template | Quote | A |
| 'Read more' text | A | |
| Tab container | Tab 1 content | A |
| Tab entry | Tab content | A |
| Tab entry blog feed | Tab content | A |
| UG: On-demand video | Text | A |