none
Modify quick lunch menu in custom aspx RRS feed

  • Question

  • Hello.

    How do i modify the quick lunch menu? In the main page i can go to site settings -> navigation. Easy.

    But i can't do the same if i want to modify a subpage menu. I want to remove the recently modify from it.

    like:

    http://sp/pwa/mypage <- it works.

    http://sp/pwa/mypage/sitepages/page.aspx -< i cant modify.


    I Hate Mondays

    Tuesday, September 17, 2019 1:45 PM

Answers

  • Hi Lokid,

    This comes as part of the design from SharePoint, however if you really want to change this can be achieved in 2 ways:

    1. Edit page, insert content editor web part, edit source HTML of web part, paste in this HTML:

    <style type="text/css">
     .s4-recentchanges
     {
     display:none;
     }
     </style>

    2. The second approach is to change the default templates as part of Hives files

    a) Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\DocumentTemplates\
    b) Open wkpstd.aspx in a text editor.
    c) Find <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/> and replace with <SharePoint:RecentChangesMenu runat="server" id="RecentChanges" visible="false"/>.
    If you ever need to reverse this process simply remove the visible="false" from the same tag.

    Edit: This is not considered a "best practice" as updates from Microsoft can effectively undo the changes made to files in the 14 hive. In theory, however, should an update reset your wkpstd.aspx file you could simply take these steps again to re-hide the Recently Modified section so long as the update didn't fundamentally change the tag that needs to be altered.

    Hope this helps, let me know if you still see if there are any issues.

    Regards,

    krishna

    • Marked as answer by Lokids Wednesday, September 18, 2019 6:11 AM
    Tuesday, September 17, 2019 3:19 PM

All replies

  • Hi Lokid,

    This comes as part of the design from SharePoint, however if you really want to change this can be achieved in 2 ways:

    1. Edit page, insert content editor web part, edit source HTML of web part, paste in this HTML:

    <style type="text/css">
     .s4-recentchanges
     {
     display:none;
     }
     </style>

    2. The second approach is to change the default templates as part of Hives files

    a) Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\DocumentTemplates\
    b) Open wkpstd.aspx in a text editor.
    c) Find <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/> and replace with <SharePoint:RecentChangesMenu runat="server" id="RecentChanges" visible="false"/>.
    If you ever need to reverse this process simply remove the visible="false" from the same tag.

    Edit: This is not considered a "best practice" as updates from Microsoft can effectively undo the changes made to files in the 14 hive. In theory, however, should an update reset your wkpstd.aspx file you could simply take these steps again to re-hide the Recently Modified section so long as the update didn't fundamentally change the tag that needs to be altered.

    Hope this helps, let me know if you still see if there are any issues.

    Regards,

    krishna

    • Marked as answer by Lokids Wednesday, September 18, 2019 6:11 AM
    Tuesday, September 17, 2019 3:19 PM
  • Hi, Lokids,

    The SharePoint Navigation works for all the pages in your site. It is by-design. The modification on navigation will works on all pages in the site. If you want to remove certain part of the navigation for a certain page. You will need some code work.  You can try content editor and edit source HTML just like Krishna said. 

    Best Regards

    Jerry


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, September 18, 2019 2:29 AM
  • Thank you. The content editor did the job.

    I Hate Mondays

    Wednesday, September 18, 2019 6:12 AM