This forum is for churches and ministries using Web-Empowered Church tools or packages. If you are a WEC customer, please submit a ticket. If you are reporting a bug with one of our plugins, please email us. If you are a business entity and want help that you cannot find here, please look at our services.
Notice: we are using new forum software and most messages from last 2 years were transferred. If you had an account before, please login to post a message on the forum.
| Author | Message |
|---|---|
|
Written on: 01/25/2010
|
|
|
Keith Hering
registered since: 01/12/2009
Posts: 64
|
I am a very novice Typoscript user. I have successfully created a new sermon resource to play a sermon file which is hosted from another website (archive.com) based on examples I have found in other posts. I am now trying to include a new download resource which can be used to download the sermon file from the same website. The complication is how to change the download_linkedfile definition from just using the current "file" to using a concatenation of "webaddress1" and "webaddress2" which is needed to define the complete url. This is my current code: # donwload_linkedfile Linked Download plugin.tx_wecsermons_pi1.resource_types { download_linkedfile = TEXT download_linkedfile { value = To Download, right-click and select Save link/Target As... typolink { parameter = http://archive.org/{current:1} parameter { setCurrent.field = webaddress2 setCurrent.listNum = 0 insertData = 1 if.isTrue.field = islinked } } } } # linked_mp3 Linked Audio plugin.tx_wecsermons_pi1.resource_types { linked_mp3 = COA linked_mp3 { 10 = < plugin.tx_wecsermons_pi1.stdHeader 10 > 10 = TEXT 10.value = Listen Online 20 < plugin.tx_wecflashplayer_pi2 20 { audiobase.value > audiobase.field = webaddress2 baseurl = TEXT baseurl.value = http://archive.org audiofile.setCurrent.field = webaddress1 audiofile.setCurrent.listNum = 0 audiofile.current = 1 } #### This part adds a link to the MP3 file to be downloaded #### The text of the link is also changed 30 < plugin.tx_wecsermons_pi1.resource_types.download_linkedfile 30.wrap = <br><span class="download-link">|</span> stdWrap.innerWrap = <div class="tx-wecsermons-pi1-mp3">|</div> stdWrap.innerWrap { addParams.title = 1 addParams.title.field = type_description addParams.title.stripHtml = 1 } } } This works except for the fact that I need to somehow concatenate the "webaddress1" field to the typolink parameter field to complete the url. I am sure this is a very simple syntax issue, but I cannot find an example anywhere to guide me. Thanks. Keith Hering |