You are here

README.txt in Views Current Path (Global: Current Path) 7

Provides a Views field that prints out the current path of the page being viewed.

-- USAGE --

Create/edit your view and add a new field. In the "Add fields" window, choose
"Global: Current Path". Configure the field options and apply it to your display.

Although there are many use-cases for this functionality, the most common use is
taking advantage of the "Rewrite results" section in other fields where you can use
this field token (i.e. [current_path]) in the text or adding it to the "Output this field
as a link" input box.

-- CREDIT --

Original concept taken from:
http://drupal.stackexchange.com/questions/49377/get-the-current-path-in-views

File

README.txt
View source
  1. Provides a Views field that prints out the current path of the page being viewed.
  2. -- USAGE --
  3. Create/edit your view and add a new field. In the "Add fields" window, choose
  4. "Global: Current Path". Configure the field options and apply it to your display.
  5. Although there are many use-cases for this functionality, the most common use is
  6. taking advantage of the "Rewrite results" section in other fields where you can use
  7. this field token (i.e. [current_path]) in the text or adding it to the "Output this field
  8. as a link" input box.
  9. -- CREDIT --
  10. Original concept taken from:
  11. http://drupal.stackexchange.com/questions/49377/get-the-current-path-in-views