News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Minimalist Layout

Started by nickk, 12.03.2016 02:14:03

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickk

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  :( )
  •  

ColinM

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]
Colin M
  •  

nickk

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
  •  

GeorgeC

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  
  •  

ColinM

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
Colin M
  •