Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM SiteMaps and Publisher

Posted on by 550

Hi,

I have seen in sitemap editor in Xrm Tool Box , that each subareas have publisher nav_ (for example nav_accts or nav_conts) .What are these (_nav) publishers ? Does the _nav publisher in Sitemap  change with the  publisher we set in (customizations ->publisher )for the solution ? 

Thanks in advance!!

*This post is locked for comments

  • HajiraRoshan Profile Picture
    HajiraRoshan 550 on at
    RE: CRM SiteMaps and Publisher

    Why is nav_ prefix used here in code . For example , i have a javascript web resource where we are using nav_relationshipname.What doe nav_ element refers to here?

    function ConfigreToolbarDisplay() {
    HideAssociatedViewButtons('new_new_cashflow_new_cashflowitem', ['Add existing Budget Line to this record']);
    }
    
    function HideAssociatedViewButtons(loadAreaId, buttonTitles) {
    var navElement = document.getElementById('nav_' + loadAreaId);
    if (navElement != null) {
    navElement.onclick = function LoadAreaOverride() {
    // Call the original CRM method to launch the navigation link and create area iFrame
    loadArea(loadAreaId);
    HideViewButtons(document.getElementById(loadAreaId + 'Frame'), buttonTitles);
    }
    }
    }
    
    function HideViewButtons(Iframe, buttonTitles) {
    if (Iframe != null) {
    Iframe.onreadystatechange = function HideTitledButtons() {
    if (Iframe.readyState == 'complete') {
    var iFrame = frames[window.event.srcElement.id];
    var liElements = iFrame.document.getElementsByTagName('li');
    
    for (var j = 0; j < buttonTitles.length; j++) {
    for (var i = 0; i < liElements.length; i++) {
    if (liElements[i].getAttribute('title') == buttonTitles[j]) {
    liElements[i].style.display = 'none';
    break;
    }
    }
    }
    }
    }
    }
    }
    


    Thanks !!

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: CRM SiteMaps and Publisher

    The nav_ prefixes in the SiteMap are not the same as the publisher prefix applied to entity and attribute names. As far as I know, the nav_ prefix is just a naming convention used in SiteMap, and has no other meaning

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: CRM SiteMaps and Publisher

    Hi,

    No this prefix is not coming from CRM publisher, As per my understanding it just used by default as a short prefix of navigation.

    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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans