Aash
http://ggnnww.yn.lt/social_button_blog
i use this version of blog. I only want a small modification. Please help as i dont know scripting.
Modification: The blog will use xt_get_device_template and it will show Only Header of 3 posts on Mobile device, and 5 Header with truncated posts on desktop computers
AH-SID
Aash you should add:
var $device =<xt:get_device_template>
if $device ==mobile
var $entries_per_page =3
var $display =1
else
var $entries_per_page =5
var $display =2
endif
put that codes in first line of <!--parser:xtscript-->
next, you should edit entries_per_page and display become:
entries_per_page="$entries_per_page" display="$display"
Aash
AH-SID This is not working at all!
Graham
Aash Works for me ?
<!--parser:xtscript-->
var $device =<xt:get_device_template />
if $device ==mobile
var $entries_per_page =3
var $display =1
else
var $entries_per_page =5
var $display =5
endif
var $blog=<xt:blog display="$display" entries_per_page="$entries_per_page" version="2"/>
print $blog
<!--/parser:xtscript-->
Copy code
http://baretest.xtgem.com/Blog
3+ titles only on mobile
5+ title image and description on web
I have added this into
http://ggnnww.yn.lt/social_button_blog
And it works there too (see first script for where to add it)
Aash
Graham Thanks its working fine now!