Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-06-17 10:19:56
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Just outputting the article image or thumbnail link path?
How would i produce just a link to an article image url or thumbnail url?
So instead of this…
<img src="/images/13.jpg" />
I want to output this…
http://www.mysite.com/images/13.jpg
Last edited by FireFusion (2009-06-17 10:20:12)
Offline
Re: Just outputting the article image or thumbnail link path?
Various image plugins will do it (upm_image, soo_image, smd_gallery). If those are overkill for your needs you could do this with a few lines of PHP inside a <txp:php>
block:
Edit: Actually, soo_image won’t display the thumbnail URL, just the full-size URL. But it would be easy to add if you need it and soo_image otherwise suits your needs. However, the other two plugins can show either the full or thumbnail URL.
Re-edit: You did say article image… So, forget the php block (could be done, but better to use a plugin).
Last edited by jsoo (2009-06-17 11:29:15)
Code is topiary
Offline
Re: Just outputting the article image or thumbnail link path?
upm_image makes it really easy to output specific aspects of images, such as the url, width, height, etc. Recommended!
Offline