web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Pages
Answered

News Page

(0) ShareShare
ReportReport
Posted on by 77

All

 

I would like to introduce a 'news' section on my front page which collects the latest 5 news items to display those 5 items (title + short paragraph).  When a user clicks on the item of interest it would go to the 'news' page and land at that new item.  After quick search, there was mention of a 'news & announcements' content snippet in Portal Management, but I do not see it available.

 

Was initially thinking of creating a JSON file, updating the JSON file when a new news items needed to be added.  The html would then embed the JSON.  But then using Power Automate to update the JSON file.  Too convoluted?

 

Any advice appreciated

 

Darren

Categories:
  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @DarrenPlant 

     

    This functionality is already available in the "Community Portal" 

    ragavanrajan_0-1645137891602.png

    ragavanrajan_1-1645137937707.png

    If you are not after using a different portal template. Then you can build your web template based on your content snippet and inject the content snippet you have created.  

     

    Example web template to give you an idea. 

     

    {% assign showdescription = showdescription | default: false %}
    {% assign count = count | default: 3 %}
    {% assign languagecode = website.selected_language.code %}
    <div class="panel panel-default">
     <div class="panel-heading">
     <div class="panel-title">{% editable snippets 'KnowledgeMgmt/MostPopularArticles' type: 'text', default: resx['KnowledgeMgmt_Most_Popular_Articles'], escape: true, tag: 'span' %}</div>
     </div>
     {% assign popular_articles = knowledge.articles | popular: count,languagecode %}
     {% if popular_articles %}
     <div class="list-group">
     {% for article in popular_articles %}
     <div class="list-group-item clearfix">
     <a class="title" href="{{ article.url | escape }}">{{ article.title | escape }}</a>
     {% if showdescription %}<p class="description">{{ article.description | escape }}</p>{% endif %}
     </div>
     {% endfor %}
     </div>
     {% endif %}
    </div>

     


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 41

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 20 Super User 2026 Season 2

Last 30 days Overall leaderboard