Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Podcast Module - Adding another file attachment


Go to End


1288 Views

Avatar
HeartlandTech

Community Member, 17 Posts

22 February 2012 at 4:52pm

Does anyone know how I could add a file attachment (like a PDF) to the current Podcast Module? I have changed the code so that I can attach the PDF document to my podcast, but I can't seem to get it to spit out the link. Here's my template file:

<% require css(podcast/css/Podcast.css) %>

<% if Image %>
<span id="episode-image">
$Image.setWidth(200)
</span>
<% end_if %>
<% control singleEpisode %>
	<h2>$Title</h2>
	<% control Attachment %>
		<p><% _t('PlayNow','Play now') %>: $Player</p>
	<% end_control %>
	<p id="shownotes">$ShowNotes</p>
	<% control Attachment %>
		<p><a href="$link"><% _t('Download','Download MP3') %></a></p>
	<% end_control %>
	CHECK FOR SERMON NOTES HERE???
	<% control Sermon_Notes %>
		<p><a href="$sermon_link"><% _t('Download','Download Sermon Notes') %></a></p>
	<% end_control %>
<% end_control %>