Hi!
I'm just wondering how I can output the filename of an editble type='file' instead of the full path?
Many thanks
I'm just wondering how I can output the filename of an editble type='file' instead of the full path?
- Code: Select all
<cms:editable name='uploaded_pdf' label='Downloadable PDF File' type='file'/>
<a href="<cms:show uploaded_pdf />"><cms:show uploaded_pdf /></a>
Which will generate:
< href="http://domain.com/files/document123.pdf">http://domain.com/files/document123.pdf</a>
How I'd like it:
< href="http://domain.com/files/document123.pdf">document123.pdf</a>
Many thanks
