Why am I getting a include reference not found error in a liquid tag added to a powerpages webpage?

Sam Misemer 0 Reputation points
2024-05-08T03:16:58.4633333+00:00

Hello all --

In the module Work with Power Pages metadata, the Exercise - Build side navigation gives me an error when I add the liquid tag to the innermost <div></div> element.The exercise calls for adding

{% include "weblink_list_group" weblink_set_name: "Secondary Navigation" %}

so the final element looks like

<div class="col-md-12 columnBlockLayout" style="display: flex; flex-direction: column;"> {% include "Weblink List Group" weblink_set_name: "Secondary Navigation" %} </div>

...which is somewhat different than my existing code, but when I add it using the web version of visual studio code, the page renders with an error include reference weblink set name not found.

Can anyone identify what I did wrong?

Thanks in advance!!

-SCM

Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
104 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Syed Saleem Peera 875 Reputation points Microsoft Vendor
    2024-05-09T08:23:17.1333333+00:00

    Hi Sam Misemer,

    Thank you for reaching out to us on Microsoft Q&A forum.  

    It seems like you might have made a typo in your Liquid tag. In the exercise, the correct syntax for including the "weblink_list_group" is:

    makefileCopy code
    {% 
    

    Make sure you use the correct case for the filename ("weblink_list_group") and the parameter name ("weblink_set_name"). It's also important to ensure that the value for "weblink_set_name" matches the name of the weblink set you've created in your environment.

    If you are still facing any issue, please let us know in the comments. We are glad to help you.

    If the information is helpful, please Accept Answer so that it would be helpful to community members.

    Thank you.

    0 comments No comments