A simple Web Template example in Portal (Dynamics 365)

Let us create a very simple web template that displays logged in user’s name and displays whether the user is in administrator role or not.

The template uses Liquid language

The Web template can be used to define Page Template.

Page template can be of type Web Template or Redirect. Redirect types would be pointing to actual physical aspx page inside the portal.

Now as we have our custom page template defined we can create a new child page in our portal using this new page template.

As we have Use Website Header and Footer checked the page takes it from the web site.

This is how the page renders with our new template

If we uncheck Use Website Header and Footer checkbox, the page renders with only the content (source) defined within the web template.

Apart from being used to define page template, web template can be inserted into the page through editing the copy of the page.

  • Click on Edit

  • Select Insert Template

  • Select the Hello World Template (it also displays the preview) and click Ok.

  • Click on Save

  • This adds our custom web template in the page.

This was a very basic example, please check the below link that contains all the details and real world examples.

https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/liquid-templates/basics/web-template/

Hope it helps..


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

2 thoughts on “A simple Web Template example in Portal (Dynamics 365)”

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s