Hello, I am trying to connect the module to a slideshow. Therefore I need to be able to output just the filename, not the whole path. How can I do that?
I am trying this now. However it doesn’t work. It still outputs the full path :S
<img src="<?=$path = explode("/","{image_url}"); $filename=$path[count($path)-1]; echo($filename);?>" title="{title}" description="{caption}"/>
I really hope I can get this to work. It would open up some possibilities for the next project.
This does get the string into the path variable. But it doesnt explode it.
This could get sloppy, but what if you used the Find & Replace plugin? You could have it remove the main part of the path…
Otherwise, I don’t believe there’s any built-in variables for this - not even for the Native EE Photo Gallery…
Hi Pie Man, that did it! Thanks!