jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: trogladyte on 15.02.2016 22:07:03

Title: Module seems to be saving display and not collapsing
Post by: trogladyte on 15.02.2016 22:07:03
This is my first use of jDownloads and I'm really liking it.

I have a school website where I've used it as an easy for teachers to upload and display downloads for students and parents. However, not all teachers have downloads as yet. The ones that have no actual files uploaded yet still have a module assigned to the right module position. Desite nothing being their, jDownloads seems to save the space and shows a big white space. For an example see - http://www.atonementlutheranschool.org/preschool/mini-3-s

I couldn't see anything in settings that would stop this. I have those positions set to collapse in my template (made with Themler), so I assume it's jDownloads doing it. Apologies if it isn't!

The other thing I'd like to know how to do relates to actually downloading a file. Currently a user clicks a file name which takes them to a page displaying all the files in that category (kind of redundant for me but I guess we need it for deletion and editing). Clicking download on this page goes to yet another page which also requires clicking download to actually download the file. This is way too much clicking! I'd like, at least, the download button on the 2nd page (the one with all the listings) to physically download the file - the next page is super redundancy.  Thanks.
Title: Re: Module seems to be saving display and not collapsing
Post by: ColinM on 16.02.2016 11:10:31
Hi
The space you mention is not due to jD but is in your template CSS.  The actual HTML code generated by your template is shown below.  The space 'reservation' is done in class "bd-sidebararea-2-column" with a width=25% statement, also shown below.  This is basically saying always use 25% of the available space.  If that statement is changed to max-width=25% the the white space will disappear.  It is line 10970 in template.css.  The net result is shown in the attached pics both when jD has something to display and when there is nothing.  The effect of using max-width is it only uses the amount of space it actually needs up to the maximum allowed.  It is better then on small devices.
HTML
<aside class="bd-sidebararea-2-column  bd-flex-vertical bd-flex-fixed">
    <div class="bd-sidebararea-2 bd-flex-wide">               
        <div class=" bd-joomlaposition-6 clearfix"></div>                   
    </div>
</aside>

CSS
.bd-sidebararea-2-column {
    width: 25%;
}

To answer your last point the way that jD initiates downloading is controlled in the Configuration.  The following note in our documentation might help
http://www.jdownloads.net/documentations/item/download-actions-direct-via-summary-page-or-via-download-details
In addition you will find in the module settings an option to link to download details page. Setting that to Yes will then only show the details of the particular Download.

Colin

[gelöscht durch Administrator]