Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

what is sitemarker in portal development and why we use it

Posted on by 267

what is sitemarker in portal development and why we use it 

thank you in advance

*This post is locked for comments

  • Verified answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: what is sitemarker in portal development and why we use it

    Hi Zaub,

    As Oliver mentioned, you use them to avoid hard-coding URLs in your code.  URLs can be changed by content administrators, but they shouldn't be changing site markers.

    I've got a YouTube channel with videos on Portals, and I did one on this exact topic: www.youtube.com/watch

    There are also some built-in site markers that you shouldn't mess with.  For example, there is a Page Not Found site marker.  This is used by the portal code to redirect to a page when a 404 error happens.  Same idea with the Access Denied site marker.  You can update the pages that the site marker points to, just make sure that site markers with those specific names always exist, and the website code depends on them.

    Nick

  • Verified answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: what is sitemarker in portal development and why we use it

    community.adxstudio.com/.../site-markers

    I am using them to not hard-code the pages URL when calling through liquid / javascript

    to access a site marker using liquid: {{ sitemarkers["your marker name"].url }}

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans