* 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
2015-06-16 01:54 · (0)
* 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"
2015-06-17 18:35 · (0)
* Aash * AH-SID This is not working at all!
2015-06-17 20:31 · (0)
* 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)
2015-06-17 21:11 (edited 2015-06-17 21:54 by Graham ) · (0)
* Aash * Graham Thanks its working fine now!
2015-06-18 19:09 · (0)

Online: Guests: 1