Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

global to display the last part of the url

Quote Reply
global to display the last part of the url
Hi!

I am searching for a global, perhaps someone can help me.

If I have this

<%loop category_loop%>
<a href="<%URL%>"><%Name%></a>
<%endloop%>

the complete URL is returned (http://www.myDomain.de/...y1/sub_subcategory1/).
But in my system for example sub_subcategory1 is not used in this context. Another domain is routed on this folder, on this other domain category1 and subcategory2 don't exist.
For getting this to work, the global has to return instead of the complete url only "/sub_subcategory1/" (only the last folder, comparable with category_short in URL-form...).

I don't think, this is too difficult, but I have done almost nothing with perl yet and don't get it to work on my own...

thanks for helping, Tina
Subject Author Views Date
Thread global to display the last part of the url tga 3249 May 9, 2005, 6:50 AM
Thread Re: [tga] global to display the last part of the url
Andy 3160 May 9, 2005, 7:01 AM
Thread Re: [Andy] global to display the last part of the url
tga 3129 May 9, 2005, 11:22 PM
Thread Re: [tga] global to display the last part of the url
Andy 3134 May 9, 2005, 11:52 PM
Post Re: [Andy] global to display the last part of the url
tga 3112 May 10, 2005, 1:04 AM