plainblack.com
Username Password
search
Bookmark and Share

RootUrl macro

The RootUrl macro returns the url of the root of the current page.  It can be used to build root specific style elements without maintaining separate style templates for each root.  See the built-in documentation for an example of how to do this.

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
4elnino: "
You are a life saver providing this. Thank you!

Is there a macro out there that you know of that would return the file name (for lack of better term) for the current asset?

Example:

If
the asset's url is "/applicationstories/industries/medical",  the
macro would return "medical"   Not necissarily the page's
title nor it's menu title, but just the last part of the url...I don't
know what you'd call it that particular part of the url.

I'm
hoping it's really simple to do if there isn't one there? Or, can you
give me a hint, and I'd be happy to write one and contribute it.

Thanks!

LN 

"
4colink: "There isn't one, but it would be pretty easy to write."
DownloadRootUrl.zip RootUrl.zip
LinksNo Support Offered
Statistics Downloads: 392
Views: 3669
Rating: 4
Updated: 11/10/2006
Keywords macros
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved