Jump to:

7938 Posts in 1540 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Podcast Module - Adding another file attachment

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 512 Views
  • HeartlandTech
    Community Member
    17 Posts

    Podcast Module - Adding another file attachment Link to this post

    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">
    <% end_if %>
    <% control singleEpisode %>
       <% 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 %>
       <% control Sermon_Notes %>
          <p><a href="$sermon_link"><% _t('Download','Download Sermon Notes') %></a></p>
       <% end_control %>
    <% end_control %>

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.