Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-13 17:41:04
- rawtext
- Member
- From: Massachusetts, USA
- Registered: 2006-09-13
- Posts: 21
Outputing the article_image id regarding a portfolio setup
So I’m doing my portfolio with TXP, I have images tied to articles, I wanted to output the images thumbnail in a link by doing something like
<code>
<a href=”<txp:permlink />” title=”<txp:category1 title=“1” /> → <txp:title />”>
<img src=”../ui/img/work/<txp:output_article_image_id />t.gif” alt=”<txp:category1 title=“1” />” />
</a>
Note: This is all in the section /work
Now I know <code><txp:output_article_image_id /></code> is not a real tag but that would be great if we had something like that
Right now I use <txp:keywords /> to output the image id, so in the article I just put the image id in the keywords field and the article image field
So there’s no tag to output the image id, I was wondering am I doing this all wrong or what?
Maybe I’m still thinking in terms of MT where I’m moving from.
One more question, when trying to reupload an image or thumbnail tied to an article, TXP tries uploading to articles section as the root. For example in advanced pref I have my image dir set to ui/img/work/ which is what I want. But when I go to re upload a work article image it tries uploading to work/ui/img/work/ I don’t understand this. So everytime I need to reupload I have to set the advanced pref to ../ui/img/work/ so it jumps out of the /work section that txp is trying to get at. Then in IE it doesn’t understand the whole http://example.com/work/../ui/img/work/6t.gif thing so I gotta switch my advanced pref back, and so forth if I need to reupload again.
I think I’m going about this wrong, please help me in my direction.
Offline
#2 2006-09-13 21:56:07
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Outputing the article_image id regarding a portfolio setup
In the next version you will be able to use <txp:article_image thumbnail="1" />.
For now: plugin.
Offline