Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-10-12 11:45:03
- teeba
- New Member
- Registered: 2006-10-12
- Posts: 2
Re: ... grab the id of the article image from within a form?
Just found this thread and have a question to expand on this issue.
I’m looking to integrate the Lightbox JavaScript into Textpattern with minimal coding, so I figured I’d make my form such that it has this layout:
<code>
<a href=”(original image URL)”>(thumbnail_image)</a>.
</code>
I’ve used the method above to get hold of the article_image_id and then just postfix that with a ‘.jpg’ extension, however, that won’t work when my image is another format. Is there a way to get hold of the article_image extension or the original filename of that image so I could just extract the extension from the filename?
Still new to Textpattern, so I’m sorry if there’s a very obvious solution to this. :)
Thanks!
Last edited by teeba (2006-10-12 11:48:29)
Offline
Re: ... grab the id of the article image from within a form?
If you’re just integrating with lightbox, I’d either use upm_image and modify it slightly, or edit /textpattern/pubish/taghandlers.php (add a new attribute).
Offline
#15 2006-10-13 09:41:05
- teeba
- New Member
- Registered: 2006-10-12
- Posts: 2
Re: ... grab the id of the article image from within a form?
Ok, thanks for pointing out the taghandlers.php file, as I said, am a bit new to TXP but know PHP well. :)
Will sort it out then!
Offline