Home demo 4: change layout
demo 4 mos_jdownloads_file (change layout)

So far, all the downloads are shown using the default layout, selected in the backend configuration of jDownloads, in the plugins tab.
This is nice, but not very convenient. Probably you don't want to use the same layout in all of your articles, especially as soon as you want to show the latest or hottest downloads, to make the article a little bit tighter.
So, let's say we have 2 layouts. One called Standard layout with Checkboxes (one of the standard jDownloads layouts I used on the previous demopages as default-layout) and a newly created one called Rounded.

With the function onlinelayout you can easily change from one layout to another, inside of an article:
With

{jd_file file==Sun}

you get as expected:

Sun

SunSun Date
Filesize
Hits
28.08.2008
1021.08 KB
107
 
Now for our list with the 5 latest downloads we can add the following:

{jd_file onlinelayout==Rounded}{jd_file latest==5}

And we will get this:
Rank: 1 all of them (476) all of them   >> Details  Download
Rank: 2 Locke (92) Locke   >> Details  Download
Rank: 3 Kate (806) Kate   >> Details  Download
Rank: 4 Sun (107) Sun   >> Details  Download
Rank: 5 Jack (31) Jack   >> Details  Download

 

Comments  

 
0 #9 Cath 2010-08-11 14:15 Thank you for great tutorials.
I have been able to use your layout with some modification.

Again, thank you.

Cath
Quote
 
 
0 #8 BalAppoildbop 2010-07-30 13:44 hello, this my first post. dsfcsvcbyjyui
cxzc
http://sdfsd.com
Quote
 
 
+2 #7 finc 2010-04-13 14:05 The magic word is not please it is:

quote]{url_down load}

So how I do open this Link in a new Window?
Quote
 
 
+1 #6 finc 2010-04-13 12:49 I am using jDownloads 1.6 Quote
 
 
+1 #5 finc 2010-04-13 12:46 Yeah I saw it, but it was to late to delete my comment. What a shame

Is it possible to have a direct download link so the user stays on the page and gets the document at once?
Quote
 
 
+1 #4 thedom 2010-04-13 10:40 Jan, read the comment above yours.
I gave the link.
Quote
 
 
+1 #3 finc 2010-04-11 19:03 So where is this rounded layout.
It says:
Cannot find the layout Rounded!
Quote
 
 
0 #2 thedom 2009-12-10 00:10 You can copy the code here : http://www.redorion.com/plugindemo/index.php?option=com_content&task=&id=52&Itemid=83&shtt=2&ledit=9 Quote
 
 
+1 #1 Jan 2009-06-22 06:05 Hello there,

I am just wondering, where can I get the rounded layout?

Thanks

Jan
Quote
 

Add comment


Security code
Refresh

This page was generated in 0,0055 seconds.