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 / How to Reference a Web...
Power Pages
Answered

How to Reference a Web File (HTML Content) in a Web Template using Liquid?

(0) ShareShare
ReportReport
Posted on by

How would I reference a Web File in a Web Template using Liquid?

 

To reference a Content Snippet in a Web Template using Liquid, I would apparently enter 

 

{% include 'snippet' snippet_name:'AccountData' %}

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @Anonymous ,

    You cannot reference Web File in liquid. Web File can be accessed via URL that you specify for it. What exactly do you want to achieve?

  • Community Power Platform Member Profile Picture
    on at

    I just wanted to know if it was possible to reference a Web File in a Web Template. 

     

    Can you give an example of how you would reference the Web File in the Web Template?

     

    I want this html code to appear where the reference is

     

    <p> This is my sample code </p>

  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    You can create a content snippet of HTML type and then reference it in your liquid code. 

  • Community Power Platform Member Profile Picture
    on at

    I am aware of Content Snippets, which is why I wrote earlier - 

     

    To reference a Content Snippet in a Web Template using Liquid, I would apparently enter 

     

    {% include 'snippet' snippet_name:'AccountData' %}

     

    This method did not work for me, however.

  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Can you try a different syntax:

     

    {{ snippets['AccountData'] }}

     

    Don't forget to clean the portal cache after making changes.

    Also if you have multiple languages on the portal make sure that language of the snippet matches language of the open page. 

  • Community Power Platform Member Profile Picture
    on at

    I have deleted the apps as I feel this platform is too early stage for me, and the customer support unsuitable, but I will mark your response as the solution as others may find it helpful.

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
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard