Announcements
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' %}
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?
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>
You can create a content snippet of HTML type and then reference it in your liquid code.
I am aware of Content Snippets, which is why I wrote earlier -
This method did not work for me, however.
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 18 Super User 2026 Season 2
Harshit Chaubisa 4
CU08101843-0 4