jDownloadsownloads.com

Advertisement

Author Topic: Layout files on two columns  (Read 389 times)

0 Members and 1 Guest are viewing this topic.

Offline pivvu

  • Newbie
  • *
  • Posts: 5
Layout files on two columns
« on: 31.01.2018 14:44:48 »
Dear Sir,

After several tests I have not been able to modify the "Single Layout Files Line v3.2" layout so that you can publish 2 files horizontally (2 columns)
It's possible?

Many thanks in advance

Walter

Offline ColinM

  • Moderator
  • *
  • Posts: 3.241
Re: Layout files on two columns
« Reply #1 on: 31.01.2018 18:17:46 »
Hi
Are you trying to do this in an Article using the jD Plugin?

If Yes then a better layout to use is  Files link only v3.2.  Suggest you also look at
http://www.jdownloads.net/documentations/item/using-the-content-plugin-in-articles-and-modules
and also
http://www.jdownloads.net/documentations/item/brief-overview-of-the-jdownloads-modules

Colin

Offline pivvu

  • Newbie
  • *
  • Posts: 5
Re: Layout files on two columns
« Reply #2 on: 31.01.2018 18:58:01 »
Hi,

I use the "category" link from the menu ...
I would like to put a pdf and word file (same) inline

Offline ColinM

  • Moderator
  • *
  • Posts: 3.241
Re: Layout files on two columns
« Reply #3 on: 02.02.2018 10:39:21 »
Hi
I have quickly created a new Files layout that will display in two columns as in the attached pics.  Is this what you are looking for?

It cannot be guaranted that a pdf will display alongside its corresponding word version unless you adopt a suitable naminig convention and select sorting by Alphabetic.  Also you would need to set the number of Downloads per page to an even number.  There are still some 'rough edges' to the layout.  Note aslso that names need to be kept short otherwise they will wrap under the download button.
Colin
« Last Edit: 04.02.2018 18:05:09 by ColinM »

Offline pivvu

  • Newbie
  • *
  • Posts: 5
Re: Layout files on two columns
« Reply #4 on: 02.02.2018 13:00:30 »
Hi Colin

it's just as I would like it
is it possible to have the template you created?

Best regards

Walter

Offline ColinM

  • Moderator
  • *
  • Posts: 3.241
Re: Layout files on two columns
« Reply #5 on: 03.02.2018 11:58:59 »
Walter,
2 column layout attached.  I have made some revisions to handle long names.

Remaining problem is that the download button does not shrink.  So Icould do a version with no button but you would have to ensure the name part was set as clickable to give downloading.
This is Config - Front End tab field Use files title as download link?
Note the attached file is in a zip so you need to extract it, I use 7zip for this, and Import in the Layouts - Files section .
Colin
PS if you want one without the button let me know

Offline pivvu

  • Newbie
  • *
  • Posts: 5
Re: Layout files on two columns
« Reply #6 on: 03.02.2018 12:41:55 »
Hi,

I think that it is perfect. I will do further tests and I will also let you know to thank you again

best regards

Walter

Offline ColinM

  • Moderator
  • *
  • Posts: 3.241
Re: Layout files on two columns
« Reply #7 on: 04.02.2018 19:29:05 »
Walter
I have found a way to alter the button size dynamically controlled by css.  The attached file is a media controlled css file that alters the button size according to the width, in pixels, of the browser window.

Please unzip file "jd  media Custom.zip" and copy the contents of the file "jd  media Custom.css" into the jD custom.css file. 
The attached pdf gives an approximate indication of the sizes based upon the original small size button as the Very Large one!!
It is not perfect but an improvement!

Colin
PS the link below might be helpful
http://www.jdownloads.net/documentations/item/custom-css-in-layouts

Offline pivvu

  • Newbie
  • *
  • Posts: 5
Re: Layout files on two columns
« Reply #8 on: 06.02.2018 10:38:46 »
Hello,

Without your modification, choosing the very small download button I am satisfied.
I just had to disable "Display-block" in <img template as you can see in the attached image. Better if I could remedy this in the JD css, can you tell me how I could do?

If I add the code you suggested I see the big button


Offline ColinM

  • Moderator
  • *
  • Posts: 3.241
Re: Layout files on two columns
« Reply #9 on: 06.02.2018 17:10:57 »
Hi
This is being bought in by your browser so is a little more challenging to resolve.  Somewhwhere further down the righthand side your 'removal' of display:block there may be another img { ....} that has a line display:'something'; in it.  it is that line we want in css below

.jd_content_wrapper img {
  display: 'something'  !important;
  }

This should be put in the jd custom.css but if it fails you may need to put in your templates custom.css

If you cannot find another img block in the css then use the css
.jd_content_wrapper img {
  display: inherit  !important;
}

The reason for including the .jd_content_wrapper in front of img is that it will then only apply inside jDownload views
Colin

Offline Joomla Addicted

  • Newbie
  • *
  • Posts: 16
Re: Layout files on two columns
« Reply #10 on: 21.02.2018 13:06:45 »
Thank you very much for helping!

 

Advertisement