Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

What is Site Markers and How to use them in Power Pages

What is Site Markers and How to use them in Power Pages

Site markers are configurable, named value that points to a web page on your power page/portal website that is accessed in code in place of a hard-coded URL. Most of the times you might be using URLs in some links element which are hard coded or static. But as a best practice and better management, you need to use Site markers which will help you to dynamically use the URL using Site markers.

If in any case the URL is need to be updated, then no need to update code, you just need to update the Site marker and the page will be automatically using the Site marker to new URL.

How to create a Site Marker

To create a site marker, open the Power Page Management model driven app and navigate to Site Markers link from sitemap and click new option. provide Name, Website and target webpage.

You can now add a link using HTML anchor tag with href using below code in web page or web template.

<a href={{ sitemarkers['Page Not Found Page Marker'].url }}>Not Found Link</a>

You can also call it using Liquid code as below.

{{ sitemarkers["Page Not Found Page Marker"].url }}

Now save, clear the cache. then refresh the portal to test.

Hope this helps.

You can enroll now !We are giving 30% discount on our Internship Program

Don’t miss the chance to participate in the upcoming Internship Program which will be done using Microsoft Dot Net Web Development Full Stack Technology. The new batch will be starting from May 20, 2024.  We will have most experienced trainers for you to successfully complete the internship with live project experience.

Why to choose Our Internship Program?

Industry-Relevant Projects
Tailored Assignments: We offer projects that align with your academic background and career aspirations.
Real-World Challenges: Tackle industry-specific problems and contribute to meaningful projects that make a difference.

Professional Mentorship
Guidance from Experts: Benefit from one-on-one mentorship from seasoned professionals in your field.
Career Development Workshops: Participate in workshops that focus on resume building, interview skills, and career planning.

Networking Opportunities
Connect with Industry Leaders: Build relationships with professionals and expand your professional network.
Peer Interaction: Collaborate with fellow interns and exchange ideas, fostering a supportive and collaborative environment.

Skill Enhancement
Hands-On Experience: Gain practical skills and learn new technologies through project-based learning.
Soft Skills Development: Enhance communication, teamwork, and problem-solving skills essential for career success.

Free Demo Class Available