“Parameterizing” web templates for web pages in Power Pages


When using Power Pages for page rendering, you typically have a web template, a page template, and a web page. Liquid code is added to both the web template and the web page, and Power Pages merges them at the time of rendering. This allows for localization of web pages in different languages. However, if you need to render HTML in the web template that is page-specific and localized, creating additional templates or snippets can become cumbersome. Instead, you can include the "Page Copy" twice in the web template and use a variable to control when it is rendered. This allows for parameterized web templates where each web page can initialize parameter values before rendering. This is different from web template manifests, which do not support parameterization when used with web pages.


Article 9m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time