News list display settings: skipping the most recently publi

Posted by Community Admin on 05-Aug-2018 16:38

News list display settings: skipping the most recently published article

All Replies

Posted by Community Admin on 20-Jun-2013 00:00

Hi all.

In order to change the style of the first news item, I've separated a news list in to two. However, this means that the most recently published article displays twice. Is there a means of starting at the second most recently published article (without tagging or categorising), for the second part of the list?

Or, is there an entirely more elegant solution to modifying the style of the first item only?

Thanks,

Scott

Posted by Community Admin on 20-Jun-2013 00:00

This news list creates a UL.  Using CSS you should use:

.sfnewsList li:first-childfont-weight:bold;
This will get the first LI this is assuming you have not edit the widget template and changed the class(es)

Posted by Community Admin on 20-Jun-2013 00:00

Thanks Jonathan, great idea. For some reason I was thinking we were still in 2007 and first-child wasn't widely supported by the browsers!

Posted by Community Admin on 20-Jun-2013 00:00

No worries! Good Luck!

Posted by Community Admin on 25-Jun-2013 00:00

Hi Jonathan,

Thank you for helping and sharing solutions.

Regards,
Stefani Tacheva
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed