Skip to main content
Community site session details

Community site session details

Session Id : HtFEQTa9282wS/8guxVg7i
Power Pages - Power Apps Portals
Answered

How to pass a parameter to a Content Snippet

Like (0) ShareShare
ReportReport
Posted on 25 Aug 2021 16:22:49 by 179

Hi All

 

I'm considering using a Content Snippet to handle our Portal Page headings (which include an image and text). The image can be obtained using entities and liquid. Is it possible to pass a parameter to a Content Snippet, this would be some text that would be displayed alongside the image.

 

Thanks

  • paulsnolan Profile Picture
    179 on 26 Aug 2021 at 15:36:00
    Re: How to pass a parameter to a Content Snippet

    Thanks Oliver

     

    That gave me exactly what I wanted

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 25 Aug 2021 at 20:34:50
    Re: How to pass a parameter to a Content Snippet

    No, unfortunately Content Snippets don't take input parameter, what you can use instead is Web Templates as they accept input parameter

    OliverRodrigues_0-1629923573667.png

    then include via HTML or JavaScript

    {% include 'My Web Template' my_parameter: 'Hello World' %}

     

    OliverRodrigues_1-1629923681256.png

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete