Hi,
Is it possible to create a minimalist layout that can be used to create a download link in content like
Click here for the document
I can set jD - Configuration - Frontend - 'Use files title as download link? ' to Yes and disable other features in the frontend configuraiton but that would affect other areas of my site where I do want to use jD's full functionality.
Would it be as simple as removing the Heading and Footer html and cutting down the Layout html of a Layout like 'Standard Files Layout v2.5)' (not that my html coding is much good :( )
Hi
Yes it is quite possible.I have attached one of the new <div based layouts that should be released with v42 in a few days time - it will work with the present layouts.
You need to unzip and then use the Import in Layout in jD Backend. You then select that layout in your Content plugin
The main part of the layout is just
<div class = "jd_files_oneline" style="">{file_title}{release}{pic_is_new}{pic_is_hot}{pic_is_updated} </div>
You should EITHER add
.jd_files_oneline,
.jd_files_minipic {
display: inline-block;
padding: 0px 2px;
}
.jd_files_oneline {
float:none;
}
to your jd_custom.css file
OR modify the above to
<div class = "jd_files_oneline" style="display: inline-block; padding: 0px 2px;float:none;">{file_title}{release}{pic_is_new}{pic_is_hot}{pic_is_updated} </div>[/code]
OR wait until V42 is released.
If you choose to try the code then please be aware that you may need to re-visit when v42 is released
Colin
[gelöscht durch Administrator]
Hi Colin,
Very many thanks for the quick response with this - we will be investigating this solution today and will let you you know how we get on.
Nick
Hi Colin,
I have been testing the solution you posted this morning, and am struggling to get the layout you have provided to display as we would like.
I have made the layout active, and inputted the code you suggested. When displayed in the article, the download appears as a table, as like any of the other layouts. When displayed in the 'Overview' page, the download displays as linked text. We would want the download to appear as linked text within the article itself, rather than the 'Overview' page, in a layout such as 'Click here to view a PDF file of this guide' for example.
Is there a way to display the download like this in the article? Or perhaps there is a step I am missing that means the download isn't displaying as it should?
Kind regards,
George
George
You might find this documentation helpful
http://www.jdownloads.net/documentations/item/overview-and-installation-notes-for-jdownloads-plugins
Also if you look at jD Config Plugins Tab- Default Layout field you can select which is the default layout to use with the Content pluginColin