title: Kentico Get Current URL for Page Type Field/Dropdown/Component
body: <p>I'm trying to create a dynamic page type field, it should able to access correct "Settings" folder to capture the Data Item based on the root (Finance or Procurement):</p>
  
  <p><a href="https://i.stack.imgur.com/VCtv4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCtv4.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8i28Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8i28Y.png" alt="enter image description here"></a></p>
  
  <p>Let's say the page type being used under <strong>Finance</strong>, the field should go to '<strong>Finance</strong>/Setting/(whatever)'.</p>
  
  <p>What I have done is 'hardcode' the path:
  <a href="https://i.stack.imgur.com/KB18j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KB18j.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NHRU4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NHRU4.png" alt="enter image description here"></a></p>
  
  <p>I have tried CurrentDocument.DocumentAliasPath, GetDocumentUrl() and so on, it doesn't show anything on the dropdown.</p>
  
  <p>Is there any way to directly get the "Root(Finance or Procurement)" or indirectly get (Chopped from URL, or get URL using GUID)?</p>
  
  <p>Thank you!!</p>