plainblack.com
Username Password
search
Bookmark and Share

Parent Macro

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>

 

System Requirements

developed on 7.7.28

Release Notes for Version 1 (8/28/2010)

First Release. Meets my needs =)

Comments
0elnino: "It's up to the content manager to test and make sure you don't bring people to places you don't want them to be.."
Purchase

1.00

LinksWebGUI Programmer
No Support Offered
Screenshotsscreenshot.jpg
Statistics Downloads: 2
Views: 2509
Rating: 0
Updated: 8/28/2010
Keywords macro
NavigationMore from WebGUI Programmer
Back to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved