Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-12-29 20:16:13

flashlight
Member
Registered: 2004-06-01
Posts: 13

<txp:zem_article_image /> question

Hi,

The documentation for this plugin states

The article image field must contain one or more numeric image IDs separated by commas.

I can’t seem to make head or tail of this. Does this mean the txp assigned img number, ie 15.jpg, 16.gif etc?

It seems that I need to include the full path to the img directory (it’s not root) to get the article_image to work with one image. Adding the comma, as described in the documentation fails; it just returns img src=”/newsite/images/15.jpg, /newsite/images/16.jpg”

Any help would be most appreciated.

Thanks

Last edited by flashlight (2004-12-29 20:39:06)

Offline

#2 2004-12-29 20:47:09

Chris
Member
Registered: 2004-02-26
Posts: 22

Re: <txp:zem_article_image /> question

the article image field can take several diferent types of input for use with txp:article_image, one of them being just the id number on its own e.g. 15

have you tried 15,16 or 14,15,16 etc?

zem’s plugin is probably subdirectory aware although I’ve not tried it.

is that any help?

Last edited by Chris (2004-12-29 20:48:02)

Offline

#3 2004-12-29 21:07:17

flashlight
Member
Registered: 2004-06-01
Posts: 13

Re: <txp:zem_article_image /> question

Chris – almost. I didn’t know I could just enter the id number – very cool. Unfortunately, when I enter 15,16 or 15, 16 or 15 , 16 the plugin generates one img src tag with what ever I’ve entered in quotation marks. Note that the plugin seems to work, as it can handle one id just fine…

Offline

#4 2004-12-30 00:09:12

Chris
Member
Registered: 2004-02-26
Posts: 22

Re: <txp:zem_article_image /> question

OK, I’ve had a look at the docs on Zem’s website:
http://thresholdstate.com/articles/3700/zem_article_image-documentation

Looks like you need to specify an upper limit in the tag otherwise only the first image will be displayed.

Try…
<code>
<txp:zem_article_image limit=5 />
</code>

and put a comma separated list off your image id numbers in “Article Image”. I guess so long as your limit is higher than the number of ids in the list you should be alright.

Getting closer?

Last edited by Chris (2004-12-30 00:09:45)

Offline

#5 2004-12-30 03:04:44

flashlight
Member
Registered: 2004-06-01
Posts: 13

Re: <txp:zem_article_image /> question

Hey Chris. Yeah, I tried that. It should work. I can’t think of what else I might be missing (which is fairly obvious, else I wouldn’t be posting here!). I’m going to sleep on it and see if I’m messing up the code somewhere in the morning. Thanks for your help!

Offline

#6 2004-12-30 15:26:56

flashlight
Member
Registered: 2004-06-01
Posts: 13

Re: <txp:zem_article_image /> question

Ok, back after a good nights’ rest, and, well, it still doesn’t work. I’m beginning to think something is wrong at a deeper than typo level. Perhaps there’s another way around this?

Here’s the site What I’m trying to accomplish is to have multiple images assigned to one article. If you click one of the examples – say Legal Mods – you’ll see their logo. I’d also like to show additional images below the first. zem’s plugin should do the job, but…

Anybody else have any ideas?

ps: yes, I know the site breaks in ie. I’m saving that fun job for the end…

Last edited by flashlight (2004-12-30 15:28:03)

Offline

#7 2004-12-30 21:46:03

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: <txp:zem_article_image /> question

Flashlight,

Can you post the exact tag you’re using (surround with “@ @” so it shows up in the forum), and the contents of the Article Image field that causes the problem?

Last edited by zem (2004-12-30 21:49:42)


Alex

Offline

Board footer

Powered by FluxBB