WebGUI
      Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.


RootUrl macro

User: colink
Date: 11/10/2006 4:11 pm
Views: 1725
Rating: 5    Rate [
|
]

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.


Replies

Re: RootUrl macro
User: elnino
Date: 1/31/2007 4:45 pm
Rating: 9    Rate [
|
]
Status: Approved

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 


Re: RootUrl macro
User: colink
Date: 2/3/2007 6:20 pm
Rating: 3    Rate [
|
]
Status: Approved
There isn't one, but it would be pretty easy to write.

PreviousBackNext