Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Design & Build
Suggested answer

include: reference not found

(0) ShareShare
ReportReport
Posted on by 150
 
I'm using a web template for my "Master" web template.  Inside the master template, I call other sections.  For example, a breadcrumb web template component.  This is the code from the mater web template: 
 
      {% block breadcrumbs %}
        {% include "Breadcrumbs" %}
      {% endblock %}
 
I'm getting this error message "include: reference not found : <name of missing web template>".  When previewed, the web template is rendered.  But in power pages design studio (PPDS), they do not render.
 
Here is an example.  This is the result of the above call for a breadcrumb.
 
 
Interestingly, content snippets are rendered in the PPDS dev mode.
 
So, how to get web template components called from inside a 'master' web template to render in PPDS?
 
TIA,
 
GRAYbase
 
Categories:
  • Suggested answer
    Jon Unzueta Profile Picture
    746 on at
    include: reference not found
     

    This issue you're encountering—where include statements in a master web template render correctly in preview but not in Power Pages Design Studio (PPDS)—is a known limitation in the current Power Pages environment.

    Root Cause

    PPDS has limited support for rendering nested Liquid templates (like {% include %}) inside master templates. While the site preview uses the full rendering engine (as it would in production), the Design Studio preview mode does not fully evaluate all Liquid constructs, especially those involving:

    • {% include %} for other web templates
    • {% block %} and {% extends %} inheritance patterns
    • Complex Liquid logic or dynamic content loading

    This is why content snippets render, but web template includes do not—snippets are simpler and directly supported in the studio UI.

     

    Workarounds

    Here are a few options to consider:

    1. Use Content Snippets Instead of Web Templates
      If possible, convert reusable components like breadcrumbs into content snippets. These are fully supported in PPDS and render correctly.

    2. Preview in Browser Instead of Relying on PPDS
      Use the site preview URL or publish to a test environment to see the actual rendering. This is the most accurate way to test complex Liquid logic.

    3. Use Conditional Rendering for Studio Mode
      You can detect if you're in design studio using a workaround like checking for a known variable or user role, and render fallback content:

     

    {% if user.roles contains "Administrator" %}

      {% include "Breadcrumbs" %}

    {% else %}

    [Breadcrumbs will render here]

    {% endif %}

    1. Raise Feedback to Microsoft
      This is a known limitation, and Microsoft is actively improving PPDS. You can upvote or submit feedback via the Power Pages Ideas portal.

    🏷️ Tag me if you have any further questions or if the issue persists.

    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.

    ❤️ Give it a Like if you found the approach useful in any way.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Pages - Design & Build

#1
oliver.rodrigues Profile Picture

oliver.rodrigues 33 Most Valuable Professional

#2
Fubar Profile Picture

Fubar 22 Super User 2025 Season 1

#3
JB-10040341-0 Profile Picture

JB-10040341-0 18

Overall leaderboard

Featured topics