
Development updates for Tridion
Periodically we add new functionality, enhance existing content types, or fix bugs that we find along the way. Stay connected with all the most recent updates to Tridion on our Development Updates blog.
Creative Commons photo credit: Richard Masoner
Change log for August 25, 2017
Links now supported in DataGrids
8/25/2017 8:52:13 AM

Michael Tangen
New changes rolled out yesterday to our DataGrid functionality that now allows for hyperlinking in our standard DataGrids. These changes include an addition of a data type in the configuration schema and a URL conversion function in the template. Allow me to explain succinctly how to create hyperlinked URLs in your DataGrid.
To first take advantage of this feature, you must ensure that one of your columns of data is a valid URL (e.g. https://mn.gov/showcase/) and with nothing else in that column.
Second, in the configuration component that defines and configures your DataGrid, you have to set a data type for the hyperlinked column. Within the column definitions, look for the form field labeled "Data Type". We've added an attribute labeled "url", which allows you to take that column and convert it to a hyperlink. IMPORTANT: that column must be a URL — it takes the value of that column and converts it to a hyperlink containing that value. If a cell contains "http://mn.gov", it will convert it to a hyperlink — <a href="http://mn.gov" target="_blank">http://mn.gov</a>. However if you do NOT have a URL in that cell and instead have text, like "Cell Content" for example, it would attempt to convert it to a link and would look like this: <a href="Cell Content">Cell Content</a>. So make sure that you're selecting the data type "url" for ONLY data that is indeed a valid URL.
To acquire this update: all you need do is republish your DataGrid page. The "url" attribute should already appear when you open up a DataGrid configuration component. If you do not see it, you may need to clear your browser's cache and/or start with a new browser session.
Modified files:
- DataGrid template building block
- DataGrid embedded DataField schema
General Updates
Updates
New Features
Change Log