SlideShare a Scribd company logo
1 of 9
Intentionally left empty
Intentionally left empty
While working with Sharepoint 2010 OOTB webparts, you may need to use some relative
paths like when setting your custom XSLT. Then you may think that you can make use of the
"~sitecollection" token to be automatically replaced with the real site collection URL.
Unfortunately, sometimes webparts can't resolve the "~sitecollection" token leading to an
error in your webpart. This article provides a solution for this issue.
[Development Simply Put] How To Adjust
Sharepoint OOTB Webparts Relative Paths
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
I am "Ahmed Tarek" the owner and author of the "Development Simply Put" blog. During my career
days and day after day I got more confident that it's all about sharing not the title you have. I believe
that everyone has something to share whatever small he thinks of it. Sometimes a great idea comes
out of just a tiny idea and the same for knowledge. I always try to gain knowledge and learn new skills
and I found that the best way to learn is to try to teach what you already know. This makes you think
of the best simplest way to explain complex logic which makes you spot some points may be even
yourself didn't recognize in the first time.
The greatest thing in the human mind is that it carries out too complicated operations and finally
presents it into a simple form, so why do we always try to re-complicate things? This is what
encouraged me to start my blog -Development Simply Put
(http://developmentsimplyput.blogspot.com)- trying to do my best to simplify main concepts in IT
development and share my humble knowledge in this field.
Why?
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
Blog Link: http://developmentsimplyput.blogspot.com
Facebook Page: https://www.facebook.com/DevelopmentSimplyPut
Google+ Page: https://plus.google.com/115238148611061640682
LinkedIn Group: http://www.linkedin.com/groups/Development-Simply-Put-5024295
RSS 2.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss
Atom 1.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default
Android RSS App: http://www.appsgeyser.com/336849
Follow Link: http://www.blogger.com/follow-blog.g?blogID=852966703260024356
Random Post: http://developmentsimplyput.blogspot.com/?random
Links
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
1. Comment & provide feedback (liked, hated, good, bad, missing, ......)
2. Answer the blog survey (http://www.quibblo.com/quiz/idVKX2u/Development-Simply-Put-
Blog-Survey)
3. Follow (http://www.blogger.com/follow-blog.g?blogID=852966703260024356)
4. Subscribe (http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss)
5. Share blog links
6. Invite friends whom you think will be interested
Want To Offer Help?
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein
My Resume:
LinkedIn: http://www.linkedin.com/in/atarekhasan
Yatedo: http://www.yatedo.com/atarekhasan
Zerply: http://zerply.com/ahmed-tarek-hasan/public
Stackoverflow: http://stackoverflow.com/users/1284593/ahmed-tarek-hasan
My Social Accounts:
Facebook: https://www.facebook.com/ahmed.t.hasan
Google+: https://plus.google.com/u/0/117461717174836938716
Twitter: https://twitter.com/AhmedTarekHasa1
StumbleUpon: http://www.stumbleupon.com/stumbler/AhmedTarekHasan/likes
Pinterest: http://pinterest.com/ahmedtarekhasan
About Me
"If you can't explain it simply, you don't understand it well
enough" -Albert Einstein

More Related Content

More from Ahmed Tarek Hasan

[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only OnceAhmed Tarek Hasan
 
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...Ahmed Tarek Hasan
 
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms ControlsAhmed Tarek Hasan
 
[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The ConceptAhmed Tarek Hasan
 
[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The DefinitionAhmed Tarek Hasan
 
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# MethodAhmed Tarek Hasan
 

More from Ahmed Tarek Hasan (7)

[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
[Development Simply Put] How To Make Sure jQuery Is Loaded And Only Once
 
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
[Development Simply Put] How To Get List Of SPs,Views,Functions,Triggers Cont...
 
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls[Development Simply Put] Events & Delegates In C# - Win Forms Controls
[Development Simply Put] Events & Delegates In C# - Win Forms Controls
 
[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept[Development Simply Put] Events & Delegates In C# - The Concept
[Development Simply Put] Events & Delegates In C# - The Concept
 
[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition[Development Simply Put] Delegates In C# - The Definition
[Development Simply Put] Delegates In C# - The Definition
 
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method[Development Simply Put] 4 Ways To Send Parameters To A C# Method
[Development Simply Put] 4 Ways To Send Parameters To A C# Method
 
Development Simply Put
Development Simply PutDevelopment Simply Put
Development Simply Put
 

Recently uploaded

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 

[Development Simply Put] How To Adjust Sharepoint OOTB Webparts Relative Paths

  • 1.
  • 4. While working with Sharepoint 2010 OOTB webparts, you may need to use some relative paths like when setting your custom XSLT. Then you may think that you can make use of the "~sitecollection" token to be automatically replaced with the real site collection URL. Unfortunately, sometimes webparts can't resolve the "~sitecollection" token leading to an error in your webpart. This article provides a solution for this issue. [Development Simply Put] How To Adjust Sharepoint OOTB Webparts Relative Paths "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 5.
  • 6. I am "Ahmed Tarek" the owner and author of the "Development Simply Put" blog. During my career days and day after day I got more confident that it's all about sharing not the title you have. I believe that everyone has something to share whatever small he thinks of it. Sometimes a great idea comes out of just a tiny idea and the same for knowledge. I always try to gain knowledge and learn new skills and I found that the best way to learn is to try to teach what you already know. This makes you think of the best simplest way to explain complex logic which makes you spot some points may be even yourself didn't recognize in the first time. The greatest thing in the human mind is that it carries out too complicated operations and finally presents it into a simple form, so why do we always try to re-complicate things? This is what encouraged me to start my blog -Development Simply Put (http://developmentsimplyput.blogspot.com)- trying to do my best to simplify main concepts in IT development and share my humble knowledge in this field. Why? "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 7. Blog Link: http://developmentsimplyput.blogspot.com Facebook Page: https://www.facebook.com/DevelopmentSimplyPut Google+ Page: https://plus.google.com/115238148611061640682 LinkedIn Group: http://www.linkedin.com/groups/Development-Simply-Put-5024295 RSS 2.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss Atom 1.0 Feed: http://developmentsimplyput.blogspot.com/feeds/posts/default Android RSS App: http://www.appsgeyser.com/336849 Follow Link: http://www.blogger.com/follow-blog.g?blogID=852966703260024356 Random Post: http://developmentsimplyput.blogspot.com/?random Links "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 8. 1. Comment & provide feedback (liked, hated, good, bad, missing, ......) 2. Answer the blog survey (http://www.quibblo.com/quiz/idVKX2u/Development-Simply-Put- Blog-Survey) 3. Follow (http://www.blogger.com/follow-blog.g?blogID=852966703260024356) 4. Subscribe (http://developmentsimplyput.blogspot.com/feeds/posts/default?alt=rss) 5. Share blog links 6. Invite friends whom you think will be interested Want To Offer Help? "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
  • 9. My Resume: LinkedIn: http://www.linkedin.com/in/atarekhasan Yatedo: http://www.yatedo.com/atarekhasan Zerply: http://zerply.com/ahmed-tarek-hasan/public Stackoverflow: http://stackoverflow.com/users/1284593/ahmed-tarek-hasan My Social Accounts: Facebook: https://www.facebook.com/ahmed.t.hasan Google+: https://plus.google.com/u/0/117461717174836938716 Twitter: https://twitter.com/AhmedTarekHasa1 StumbleUpon: http://www.stumbleupon.com/stumbler/AhmedTarekHasan/likes Pinterest: http://pinterest.com/ahmedtarekhasan About Me "If you can't explain it simply, you don't understand it well enough" -Albert Einstein