Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-02-05 22:02:55
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
<txp:article_image /> not finding image?
When i add an article image to an article via
Content>Advanced Options>Article image
and then use the tag <txp:article_image /> in the form
it displays a broken gif icon + “ alt=”“ />
If i use the exact same code for the image in the body of the text it shows up, so the image is fine and the path to the image is (shd be) fine.
I’ve tried adding an alt tag, changing the path to the image (in various options, including a hard link to the website URL/images …) nothing seems to get that image to show up via the <txp:article_image />
tag.
????
(Edit: assumed resolved and marked as such. :) -Mary)
Offline
#2 2006-02-05 22:17:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: <txp:article_image /> not finding image?
Did you put just the image id in the article image field? It should be for example 5, not 5.jpg.
Offline
#3 2006-02-05 23:48:22
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Re: <txp:article_image /> not finding image?
Um … no, I used its full name/path. The info box with “Article image” says:
Article Image
If you would like to associate a single image with this article, place its URL (or Textpattern image ID) here.
I can’t find info on making a Textpattern Image ID, which is what I presume you’re referring to, so I used the URL. (Which doesn’t work.)
Offline
#4 2006-02-06 04:26:29
- mbantjes
- New Member
- Registered: 2006-02-03
- Posts: 9
Re: <txp:article_image /> not finding image?
Ah! No html code allowed in the article image box. Got it.
So it’s simply
/images/image.jpg
OK.
Offline
#5 2006-02-06 16:26:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: <txp:article_image /> not finding image?
I forgot that URL is also possible. To find the image id, in Content > images hover over the image name and you see the id in the link url.
Offline