Explains how to link a piece of content to a website.
Suppose you want a piece of content, such as an image or a bit of text, to contain a link to a website. If the URL is static (ie. doesn't change), you can simply create the hyperlink in the template via the appropriate Word, Excel or PowerPoint command.
But what if the URL is stored in your data source and is dynamic? You need a way to call upon that up-to-date URL when the report is generated without having to manually check the link each time.
This is where the link tag comes in handy. The link tag tells the report that when the template is run to go to the data source, grab the desired URL, and insert the link into the report. To use the link tag, you simply put the link tag before and the endLink tag after the content to be linked.
LinksDemo.xml is sample data created for the purpose of creating links for this tutorial. The LinkTag feature must obtain the url’s from a data source.
A link tag will appear! To the right of the colon to the right of the tag write what you want to appear on your document for users to click on. For the purpose of this example we will write Windward because that is where the link will send us. You can modify the phrase or word to the right of the colon so users will know your link exists. This is shown below
All link tags must end with an end Link tag to operate. To the right of your phrase or word place your end Link tag beside it.
Inserting the URL. The link now must be added through your data source to complete the tag. To do this click once on the link tag (the one on the left not the end link tag) and go to the data tree located under the AutoTag tab on your menu. This should highlight the Data tree once the link tag is selected.
Clicking on the Data tree will pop down a window with the data source groups. The “link” group contains the URL node. The first URL in this datasource is the Windward website. Click on the URL node in the data tree to add that value to the link tag.
Note: Remember that an out tag will only return the first record in the datasource. This is OK for the purposes of this sample. If we wanted to return a list of all the links in the URL node, we would use a forEach tag.
The URL is now placed into the link tag and our tag is complete. The tag will look like this:
Save and choose an output and the link will be fully functional!