Contemporary web services often have several levels in their document trees and therefore an ability to display a path to the current document should be a great addition.
Recently I revised my snippets that I am using for this purpose in several projects and it appeared that each project runs slightly different code. CurrentPath snippet is an attempt to put things in order and make one generalized tool.
Here it is while running on default parameters:
Home » Public Domain Software » Path to Current Document
How to use CurrentPath
# 1) create new snippet 'CurrentPath' and paste into it content of the attached currentpath.txt file
# 2) call your snippet something as:
[[CurrentPath? &item=`menutitle` &tip=`pagetitle`]]
# 3) please read full discussion on parameters in snippet's header
This snippet was submitted to MODx Add-Ons repository. You are welcome to leave your opinion and/or suggest further fetaures.
- Required fields are marked with *.
- Comments are published after the approval of the site moderator, who is a human rather than a wind-fast computer program so please be patient. Off-topic comments are definitely removed.
| Enter this code into the appropriate field of the form while submitting an e-mail or a comment. If you have trouble with reading it, generate another... |


