Skip to main content

Notifications

Power Pages - General Discussions
Suggested answer

page custom metadata

Posted on by 4
In other systems that use liquid, you could use front matter to set up variables at a page level that could be retrieved by the layout template. I don't think this is possible in power pages?

I don't think there's anything in the admin UI that will let you add custom metadata to a page, but given the web page table exists in dataverse, can you add your own field to this table, and retrieve it in via liquid code?

 
Categories:
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 317 on at
    page custom metadata
    Try the following:
    • Add Custom Fields to the Web Page Table in Dataverse:  Yes, you can add custom fields to the Web Page table in Dataverse. Navigate to Dataverse > Tables > Web Page in Power Platform. Add a new column (custom field) to the Web Page table to store the metadata you want to access.

    • Populate the Custom Field for Specific Pages: In the Portal Management App, find the specific web page records you want to add custom metadata to. Populate the custom field with the relevant metadata or variables you want to use on that page.

    • Retrieve the Custom Field Value Using Liquid: In the Liquid template, you can retrieve and use the custom field's value by accessing the web page's record.

    ​​​​​​​{% assign customMetadata = webpage.custom_field_name %}
    {{ customMetadata }}
    • Use the Metadata in Layout Templates:  If you need to retrieve the metadata from a layout template, use the same Liquid syntax to access the custom field from the current page context.

  • Suggested answer
    Fubar Profile Picture
    Fubar 7,458 on at
    page custom metadata
    Not sure what you are asking.
     
    In Liquid you can:
    (the ability to retrieve data etc is also in conjunction with the Portal user or annonymous user having appropriate Table Permissions)

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #2 Global Search…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,008

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,531

Leaderboard

Featured topics