WHY?
I needed a little macro to put into my template that would provide a link just up one level. While I could do this with a assetproxy and navigation asset, it can be costly and cumbersome for maintenance.
USAGE:
^Parent(url);
returns the URL of the current asset's parent
^Parent(title);
returns the title of the current asset's parent
^Parent(nice);
returns a hyperlink of the current asset's parent. the hyperlink's text is the title.
EXAMPLE:
Screen shot is an example of usage with an added image and custom link text used in a custom Folder File template.
code:
<img src="/extras/assets/small/folder.gif" class="wg-icon" alt="<tmpl_var title>" />
<a href="^Parent('url');" title="up">Up a level</a>