web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Portal - How to remove sections from home page

(1) ShareShare
ReportReport
Posted on by 1,328

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

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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

  • epark06 Profile Picture
    1,328 on at

    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
    Fubar Profile Picture
    2,761 on at

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

    {% comment %}    {% endcomment %}

  • LuHao Profile Picture
    40,892 on at

    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

     

  • epark06 Profile Picture
    1,328 on at

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

    1425.Capture.PNG

  • LuHao Profile Picture
    40,892 on at

    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

  • LuHao Profile Picture
    40,892 on at

    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.  :)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans