Tuesday, 29 October 2019

What are Site Markers in Dynamics 365 CE Portal?

Hi,

I was searching something on Portals and reached on Site Markers. Some how I felt that Site Markers are not used much in the Development of Portals. 

Many times we get a requirement to navigate to multiple places on click of buttons and we use Window.location and use the direct URLs or may be we some hyperlinks on Portal and we directly give the URL of the Web Page which works good until someone changes the Partial URL on the Web Page.

Site Markers are something which are designed for this. We have to create Site Markers and link the Web Page that is need and use Site Marker Name in the code to navigate. Here is the syntax for the same.

{ { sitemarkers["SitemarkerName"].url } }

Changing the name of the Sitemarker is strictly prohibited. This way, we don't face any issues even if the Partial URL on Web Page has changed. 

Hope this helps.

--
Happy 365'ing
Gopinath

No comments:

Post a Comment