How to display a new youtube and new gallery on homepage.

kaminoey
@kaminoey
10 years ago
38 posts
script for show new youtube and new picture from gallery (like newest artists or newest videos)

Thanks.
jpg
 •  70KB


updated by @kaminoey: 12/28/14 08:10:30AM
paul
@paul
10 years ago
4,331 posts
{jrCore_list module="jrGallery" order_by="_created numerical_desc" limit=1}

{jrCore_list module="jrYouTube" order_by="_created numerical_desc" limit=1}

You might also need to add in the template="your_template.tpl" parameter dependent upon how you want the gallery/youtube items displaying.

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
kaminoey
@kaminoey
10 years ago
38 posts
I'm try and add in my template "index_new_galleries.tpl" "index_new_youtubes.tpl".
Show on www.oohmusic.com, but not order by "_created numerical_desc".
It order by ascending.

Thanks.
paul
@paul
10 years ago
4,331 posts
There's a bug that is fixed in the next Core release. In the meantime change _created to _item_id


--
Paul Asher - JR Developer and System Import Specialist

Tags