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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Liquid include tag usage
Power Pages
Unanswered

Liquid include tag usage

(1) ShareShare
ReportReport
Posted on by 217
I have a web template as base layout.  In the web page code, I enter this code to insert a content snippet.  
{% include one_test_snippet %}, but isn't found when rendered.
 
NOTE: I also tried it with single and double quotes around snippet name.
 
So, what is the syntax for pulling in a content snippet?
 
Thanks,
Doug
 
Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at
    Include is usually used for including another Web Template (but believe it can be used for Content Snippets also using the correct format), for a Content Snippet you should be able to one of the following
    {{ snippets["<<snippet name>>"] }}
    
    or 
    
    note: replace only the <<snippet name>> in the below the first snippet_name is a keyword
    {% include 'snippet' snippet_name:'<<snippet name>>' %}
    I have never used the Include but do use the snippets one.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard