Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
steve00 Posted July 19, 2015 Posted July 19, 2015 As per title seems everything I try doesn't workAnyone any ideas as to how to create a block or somehow use the Featured Downloads Carousel block into Pages ?
newbie LAC Posted July 21, 2015 Posted July 21, 2015 Hello,Create new custom html block with code{{$featured = iterator_to_array( \IPS\downloads\File::featured( 4, '_rand' ) );}} {{if !empty( $featured )}} <div class='ipsBox ipsSpacer_bottom'> <h2 class='ipsType_sectionTitle ipsType_reset'>{lang="featured_downloads"}</h2> <section id='elDownloadsFeatured'> <div class='ipsCarousel ipsClearfix' data-ipsCarousel data-ipsCarousel-fullSizeItems data-ipsCarousel-slideshow data-ipsCarousel-shadows='false'> <ul class='cDownloadsCarousel ipsClearfix' data-role="carouselItems"> {{foreach $featured as $file}} {template="featuredFile" group="browse" app="downloads" params="$file"} {{endforeach}} </ul> <span class='ipsCarousel_shadow ipsCarousel_shadowLeft'></span> <span class='ipsCarousel_shadow ipsCarousel_shadowRight'></span> <a href='#' class='ipsCarousel_nav ipsHide' data-action='prev'><i class='fa fa-chevron-left'></i></a> <a href='#' class='ipsCarousel_nav ipsHide' data-action='next'><i class='fa fa-chevron-right'></i></a> </div> </section> </div> {{endif}}
steve00 Posted July 21, 2015 Author Posted July 21, 2015 Hello,Create new custom html block with code Hidden ContentBig Thank you ... tried using the code from template before but wouldn't work (perhaps because of not using top 2 lines and creating using plug in and not custom) ??Again thank you (spent 5 days trying all different things and nothing worked)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.