7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Creating Hyperlink from a Dataobject
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 534 Views |
-
Creating Hyperlink from a Dataobject

25 March 2011 at 7:17am
I feel so stupid asking this, but cant for the life of me get a hyperlnk to output properly so that a dataobject (in this case pdf's) can be downloaded.
Is there something I need to add in my php file??
<div class="typography">
<% if Menu(3) %>
<% include SideBar %>
<div id="Content">
<% end_if %><% if Level(2) %>
<% include BreadCrumbs %>
<% end_if %>
<h1>$Title</h1>
$SGFirstParagraph
<h2>Download Current RAD Schedules</h2>
<ul>
<% control SafetyGuidelines %>
<li><a href="$Link">$SafetyGuidelineTitle</a></li>
<% end_control %>
</ul>
$Content
$Form
$PageComments
<% if Menu(3) %>
</div>
<% end_if %>
</div> -
Re: Creating Hyperlink from a Dataobject

25 March 2011 at 7:18am
I should have mentioned, I am calling the dataobject here:
<% control SafetyGuidelines %>
<li><a href="$Link">$SafetyGuidelineTitle</a></li><% end_control %>
| 534 Views | ||
|
Page:
1
|
Go to Top |

