jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: dioriver on 15.01.2019 10:00:19

Title: Layout questions
Post by: dioriver on 15.01.2019 10:00:19
Is it possible to override the component templates? I need to modify the output of the categories page so that the files in the category display in a table with rows and column with one file per cell. There does not seem to be a good way to do this based on the Layout Manager. Does the Layout Managers support including any php? If not I think I need to override the view in my custom joomla template directory. The reason is I need a while loop or some structure that says.

Topic title changed by admin
Title: Re: Need help?
Post by: ColinM on 15.01.2019 16:47:20
Hi
Just need to clear up a couple of things so I can better understand.So what I think you are wanting is a multi column Files Layout ( in jD 3.9 these layouts are in the Downloads layout section)This can be readily done uss CSS as demonstrated in the examples below.NB to edit layouts please first read articlehttp://www.jdownloads.net/documentations/item/editing-a-layout
The easiest way to do this is to create your own files layout based on one of the standard layouts, which in this example I have used below is files layout "Files link only v3.2".The main body of this layout has the code
<div class = "jd_files_oneline" style="">{file_title}{release}{pic_is_new}{pic_is_hot}{pic_is_updated} </div>Using that as the active layout gives as shoewn in the first pic.This is not very tidy and it will not be organised in nice columns!But if we make a copy anfd then edit the copy to have say for 3 coulmns<div class = "jd_files_oneline" style="width: 30%;">{file_title}{release}{pic_is_new}{pic_is_hot}{pic_is_updated}</div> Then the output as in the second pic - one could add more information.In the third pic I added text-align: center;
Quote<div class = "jd_files_oneline" style="width:30%; text-align:center;">{file_title}{release}{pic_is_new}{pic_is_hot}{pic_is_updated}</div>
Hope the above helps.  Should you need more info then please ask!!Colin


PS Although used in articles article in http://www.jdownloads.net/documentations/item/using-the-content-plugin-in-articles-and-modules might alsoi be helpfull