I need to extract the top level category name DURING the build so I can add the .gif extension to it and use that image on the page currently being built.
For example, for category Virginia/A/Alexandria, I need to extract Virginia from the category and add .gif to it creating Virginia.gif and subsequently load that image (a flag of Virginia) and put it somewhere on that page.
Does someone have a subroutine that will "pluck" the first part of a string from the First Position to any given character, in this case '/'????
If so, I could simply grab the substring I need and add '.gif' to it dynamically.
I'm not a perl programmer, just OLD Pascal, so I don't know what the heck I'm doing..<grin>
Thanks for your help!
For example, for category Virginia/A/Alexandria, I need to extract Virginia from the category and add .gif to it creating Virginia.gif and subsequently load that image (a flag of Virginia) and put it somewhere on that page.
Does someone have a subroutine that will "pluck" the first part of a string from the First Position to any given character, in this case '/'????
If so, I could simply grab the substring I need and add '.gif' to it dynamically.
I'm not a perl programmer, just OLD Pascal, so I don't know what the heck I'm doing..<grin>
Thanks for your help!