what is sitemarker in portal development and why we use it
thank you in advance
*This post is locked for comments
what is sitemarker in portal development and why we use it
thank you in advance
*This post is locked for comments
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
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 }}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156