2018-10-17, 01:12

Feb 27, 2012 — Notify Users module, ver. 0.5 released — user can choose between sending single message (...) »

2013-01-28, 08:32

19 студзеня 2013 у Гродне трагічна загінуў паэт, журналіст і мой сябар (...) »

2009-10-14, 07:19

The site Litaratura.org is devoted to Belarusian literary works and translations. (...) »

2009-01-12, 20:46

Late November 2008 marked the 20th anniversary of the official founding of the Belarusian (...) »

Registered User Area Log into This Site
Show Credits... Credits
~ / Public Domain Software / Path to Current Document $_
Path to Current Document
Click To View A Full Size Image...
2009-07-17, 09:15

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.

Download This Attachment... CurrentPath Snippet — the very latest version
Last modified: 2010-01-09, 00:00 — Size: 2,68 KB