Display a specific picture

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Display a specific picture

Post by RRUU »

How would one get AMC to generate a picture of a specific movie on the Full Page?
For example, the 5th picture of a total of 10 pictures/movies?
I hope anyone can help me
Thanks
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Currently AMC only handles one picture per movie so I do not really see what you mean :??:
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Post by RRUU »

Sorry let me try again :D

Instead of having AMC generate all pictures in the list, Id like it to only generate 1 picture. I do however want it to generate the entire list but only the 1 picture. (The latest addition/movie to my list).

For now I guess I can have it generate all pictures and just upload the one I am actually using but it would just make things a little more efficient if AMC is able to do this for me.

I hope that explains it more clear, sorry for the last post.

Thank you
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

In the HTML export? There is an option to not regenerate pictures that already exist in the case that you kept the files of previous export.
Another solution may be to not export pictures, and then only for the selected movie(s) use the picture export.
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Post by RRUU »

Im sorry again lol Im not a good explainer.

Here is my temporary website
http://www.angelfire.com/ab7/royalw/movies.html

At the moment I have to use another program (Frontpage) to insert the 3 new movie pictures. But there is also the entire list down below.
Is there a way I could achieve this with AMC only (and not the need of another program)?

Thanks
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I think that you cannot get this done automatically, sorry.
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Post by RRUU »

Oh well thats ok.
Maybe I can try think of another way in time
Thank you for helping me out :)
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Solution

Post by RRUU »

Oh sweet I figured a way around it by learning some new javascript and using it with an array.
I thought to post it up here if anyone else finds it useful.

Code: Select all

var pic = new Array();
$$ITEM_BEGIN
pic[$$ITEM_NUMBER] = "$$ITEM_PICTUREFILENAME";
$$ITEM_END

Code: Select all

<script type="text/javascript">document.write("<img src=\""+pic[$$TOTAL_MOVIES]+"\" width='200' height='300'>");</script>
This would give you the last picture you added because it uses "[$$TOTAL_MOVIES]'s" number as a reference.
To get the picture you want just use math...

Example:

Code: Select all

<script type="text/javascript">document.write("<img src=\""+pic[$$TOTAL_MOVIES-1]+"\" width='200' height='300'>");</script>
Where "[$$TOTAL_MOVIES-1]" is the second to last movie you added.

Thanks again :)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Good idea ;)
Post Reply