Skip to main content

Notifications

Power Pages - General Discussions
Answered

Liquid include tag usage

Posted on by 87
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
    Fubar 7,373 on at
    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.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,719

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics