Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Portal - How to remove sections from home page

Posted on by 1,320

I am trying to remove the Most popular articles and View More options from the home page. Can someone direct me to where this can be disabled? I want to disable and easily be able to enable in the future if we decide to use it.

5544551.Capture.PNG

*This post is locked for comments

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Portal - How to remove sections from home page

    Hi partner,

    Don't forget to mark the verified answer by clicking Yes.

    pastedimage1569909356240v1.png

    This will help other users quickly navigate to this theme.

    Thanks.  :)

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Portal - How to remove sections from home page

    Hi Partner,

    Is the page in screenshot a customized web page by yourself ?

    I havn't found this page in my customer self-service portal, so I take knowledgebase page as example:

    1. Firstly you should check the pathname and take it as keyword for Partial URL field to find the corresponding web page.

    5460.png

    8015.png

    2. Enter the page template

    1007.png

    3. If the page template type is Web Template, then our work could be easy, just open its web template

    3443.png

    4. embed our style code after {% block main %} tag

    page-heading is the element we want to hide, while margin-top for row is to make a margin to top for our content.

    1351.PNG

    5. Result

    3252.PNG

    If your web template type is Rewrite, then you could share me the text of it and I will do a further testing.

    Regards,

    Clofly

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Portal - How to remove sections from home page

    Thanks, I got those sections removed. However, how and where can I remove the "Home" headers?

    1425.Capture.PNG

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Portal - How to remove sections from home page

    Hi Partner,

    These sections are located in Web Templates > Home:

    5504.png

    You can comment the section with syntax as LA mentioned:

    8228.png

    Dynamics 365 Portal web templates use an open source template engine "Liquid" to allow developers to create custom templates

    http://shopify.github.io/liquid/tags/comment/

    More tutorials and documentations about how to work with the Liquid syntax:

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-tags

    https://community.dynamics.com/365/b/dynamics365apps/posts/dynamics-365-portals-liquid-templates-part-1-hello-world

    Or you could just add attribute 'style='display: none'' to the section you want to hide.

    An appearence issue is that after we hide the know more section, the Browser the KB section will has a strange layout as below:

    48476.png

    You could embed CSS rules below into web template source code to fix the issue.

    4834.png

    <style>

    .section-diagonal-right.home-section {

    margin-top: 0!important; transform: initial!important; -webkit-transform: initial!important;

    }

    .section-diagonal-right .section-diagonal-right-content {

    transform: skew(0deg, 0deg)!important; -webkit-transform: skew(0deg, 0deg)!important;

    }

    </style>

    Final result:

    1563.PNG

    Regards,

    Clofly

     

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: Portal - How to remove sections from home page

    You can comment out the Section in the "Home" Web Template.

    {% comment %}    {% endcomment %}

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Portal - How to remove sections from home page

    I've tried inside the "Try new editor" but I don't want to delete any sections. I just want to hide/disable them.

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Portal - How to remove sections from home page

    Give Administrator - web role for your contact record in CRM, then contextual edit option will come in Portal itself just like Content management system. You can remove that unnecessary options from UI easily.

    crmhub.blogspot.com/.../create-new-admin-user-for-D365-portal.html

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans