Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to render the profile side navigation on my own web template

Posted on by Microsoft Employee

I have created a new web template that will be served to the portal user as a sub page of his profile page. It is included in the side navigation on the left. 

I want to render the same side navigation on this page, so the lay-out remains consistent. I cannot just use the Profile Child Page template that is included, because I need full control over the generated HTML for reasons.

Can this be done? And How?

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to render the profile side navigation on my own web template

    Hi Steven,

    Could it work for you?

    Regards,

    Clofly

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to render the profile side navigation on my own web template

    Hi Steven,

    Below is my process to do such customization, you could take it as reference.

    1. Create a snippet content with code below:

    {{user.fullname}} {{user.fullname}}

    0268.JPG

    These code are copied from source code of left side navigation of profile page by inspector. 

    2. In custom web template, import the left side navigation by {% editable snippets 'xxx' type: 'html' %}

    {% block breadcrumbs %} {% include 'Breadcrumbs' %} {% endblock %} {% block title %} {% include 'Page Header' %} {% endblock %}
    {% block aside %} {% editable snippets 'MyProfileSideNavigation' type: 'html' %} {% endblock %}
    {% block main %}

    Any content...

    {% endblock %}

    pastedimage1590462142074v3.png

    3. Result:

    pastedimage1590462286722v4.png

    Regards,

    Clofly

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans