solved Prefix before download links

alt=
@andrusito
8 years ago
302 posts
Hi,

I was wondering if it is possible to add a prefix before every download link in my site.

I want to add "external://" before them. So for ex:

where http://devocionmusical.com/audio/download/audio_file/2585
will be external://http://devocionmusical.com/audio/download/audio_file/2585

Which file/module should I edit to achieve this?

Thanksss

pd: not sure if prefix is the word, but i think you get it :)
updated by @andrusito: 09/01/16 07:09:47AM
michael
@michael
8 years ago
7,713 posts
First thing to try would be this module:

Docs: "Template Injection"
https://www.jamroom.net/the-jamroom-network/documentation/modules/1629/template-injection

Im not sure where the URL you're seeing is coming from but best guess is from a template, so if you ran this replacement it would probably get what you're after:
http://devocionmusical.com/audio/download/audio_file|external://http://devocionmusical.com/audio/download/audio_file
brian
@brian
8 years ago
10,148 posts
You can either use template injection, or simply change them in your app - it's just a simple text replace.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@andrusito
8 years ago
302 posts
The problem is I can only setup the url to show on the app.

That's all about config I can do...
brian
@brian
8 years ago
10,148 posts
Looks like there are 2 posts going on the same thing - I've locked this one, so let's follow up here:

https://www.jamroom.net/the-jamroom-network/forum/new_posts/42845/2-jamroom-sites-1-database

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags