Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 19, 20159 yr 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 ?
July 21, 20159 yr 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}}
July 21, 20159 yr Author 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)
Archived
This topic is now archived and is closed to further replies.