1 keatonatron Mar 08, 2007 14:10
3 yabba Mar 08, 2007 17:18
With reference to [url=http://doc.b2evolution.net/v-1-9/evocore/Item.html#methodcontent]this page[/url] in the docs, you should be able to do something like this :-
<?php
$Item->content( '#', '#', '<img src="picture_for_post'.$Item->ID.'.jpg" />' );
?>
¥
4 keatonatron Mar 08, 2007 17:52
That's the page I was looking at. I found $Item->get('title') and used it to do what I wanted, but I had to name pictures the same as titles, which could get messy with spaces/odd characters. I couldn't find $Item->ID anywhere, but that's just what I was looking for! Thanks.
5 yabba Mar 08, 2007 17:56
Damn, that's the first time I've been on the same page as anybody!
¥
I might be getting close. I've figured out how to use $Item->get('...') to pull certain info about the post into the HTML (which I could then use to create a unique file name for each image).
However, the value I really want to pull up is post_ID (as it's referred to in the database) but I'm not sure where to find the variable.
I'm extremely new to all this (I have general programming experience) and am learning a lot, but am still missing a lot of pieces. How can I add my own property to the "item" class and fill it with the post_ID?