Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ELE0Zen7E1pqS/w6NfUni2
Power Pages - General Discussions
Answered

Liquid include tag usage

Like (1) ShareShare
ReportReport
Posted on 12 Sep 2024 16:18:28 by 148
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:
  • Verified answer
    Fubar Profile Picture
    7,767 Super User 2025 Season 1 on 12 Sep 2024 at 21:44:10
    Liquid include tag usage
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,692 Most Valuable Professional

Leaderboard
Loading started
Loading complete