jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: BrentwoodVisual on 18.01.2018 02:23:06

Title: Custom Layout: Download URL without button
Post by: BrentwoodVisual on 18.01.2018 02:23:06
I'm creating a custom layout and would like to use my own button styles rather than the built-in images in order to keep the look consistent with the rest of my template. I need a variable in the Files layout that gives me only the URL to a file, without the button. I don't see one on the list - is there a way to get this?

Just for example, I'd like my code to look like this:
<a href="{url}" class="button">Download File</a>
Title: Re: Custom Layout: Download URL without button
Post by: ColinM on 18.01.2018 19:22:33
Hi
The code gererated that creates the button is something like below dependent upon on the colour and size selected in the jD Config
<a target="_blank" href="/jdx2/index.php/all-cats/send/8-public-downloads/55-helen0-1" title="Download" class="jdbutton jorange jsmall">Download</a>
It has classes jdbutton which is the basic shape, jorange which determines the colour and jsmall which determines the size.

You could possibly create an override of the code which creates the output code.Probably simpler is to use custom css to create a button that looks like the one in your site.  If you PM me details of your front end I will take a look to see what might work.

Colin