Skip to main content

Notifications

Dynamics 365 general forum

Hide Portal breadcrumbs when user signed off.

Posted on by 92

Hello Everyone,

I want to hide the breadcrumbs when user signed off. 

If user logged into the portals then user must be able to see the breadcrumbs and all the related information.

Please suggest me with your answers.

Thanks in advance.

Siddhartha.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Hide Portal breadcrumbs when user signed off.

    Hi,

    Breadcrumb are rendered by the web template called "Breadcrumbs". If you put a check within the template for user id then it should work. Something like below-

    bread.png

    Code:

    ===============

    {% assign title = title | default: page.title %}
    {% if user.id != null %}
    <ul class="breadcrumb">
    {% for crumb in page.breadcrumbs -%}
    <li>
      <a href="{{ crumb.url | h }}" title="{{ crumb.title | h }}">{{ crumb.title | truncate: 24 | h }}</a>
    </li>
    {% endfor -%}
    <li class="active">{% block activebreadcrumb %}{{ title | h }}{% endblock %}</li>
    </ul>
    {% endif %}
    ====================

    Hope this helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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

Featured topics

Product updates

Dynamics 365 release plans