Jump to content

Featured Replies

Posted

Featured blogs are shown at the top of the blog homepage, how many featured blog posts will it show? e.g. is it the last 10 featured ones for example. Or does it scroll through them indefinitely so if had 100 featured posts it would randomly scroll between 100 of them?

Many thanks in advance 

Hello,

it's carousel HTML type displaying form:

<div class='ipsBox ipsResponsive_pull ipsSpacer_bottom'>
	<h2 class='ipsType_sectionTitle ipsType_reset'>{lang="featured_entries"}</h2>
	<div class='ipsClearfix'>
		<div class="cFeaturedTopics ipsCarousel ipsClearfix" data-ipsCarousel data-ipsCarousel-slideshow data-ipsCarousel-fullSizeItems data-ipsCarousel-shadows='false'>
			<div class='ipsCarousel_inner'>
				<ul class='cTopicCarousel ipsClearfix ipsList_reset' data-role='carouselItems'>
					{{foreach $featured as $entry}}

 

So it will be displayed with a horizontal scrolls buttons.

  • Author
On 11/21/2023 at 4:18 PM, Marc Stridgen said:

If you have 100, it will show 100

OK, in the order of when featured, or when the blog entry was created I guess? 

So would need to manually go and un-feature topics, no default way of only showing the X amount? Would make more practical sense surly, if using the featured as paid featured posts. Or just if the community wants to show only he latest and most relevant featured posts 🤔

Edited by ekforum

16 hours ago, ekforum said:

OK, in the order of when featured, or when the blog entry was created I guess? 

So would need to manually go and un-feature topics, no default way of only showing the X amount? Would make more practical sense surly, if using the featured as paid featured posts. Or just if the community wants to show only he latest and most relevant featured posts 🤔

I guess what you would actually be asking for here, is the facility to feature only for x amount of time, rather than anything else. A featured block will show all the featured content. Im not sure on the order, so have tagged a dev to see if we can get an answer on that one

This post was recognized by Marc!

DawPi was awarded the badge 'Helpful' and 5 points.

"Very helpful, thank you :)"

36 minutes ago, Marc Stridgen said:

Im not sure on the order, so have tagged a dev to see if we can get an answer on that one

It's random. 🙂

$featured = iterator_to_array( \IPS\blog\Entry::featured( 5, '_rand' ) );

 

Recently Browsing 0

  • No registered users viewing this page.