Want to show the latest movies added

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

Want to show the latest movies added

Post by RRUU »

Is there a template that has a list of the latest (say 10 for example) additions to your collection as well as the full list?

If not is there anyone that would know how to code that into a template?
Would it be an array?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It cannot be done automatically at export time.
I see two solutions:
- export only latest movies
- either create a PHP-based or Javascript-based template that would filter movies and display only latest ones from an exported list.
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Post by RRUU »

Thank you.

The idea is that id like to upload the list somewhere and have friends browse it when they feel but a frustration has occurred because if its sorted by date added, then its hard for one to browse for a particular title. If sorted alphabetically its frustrating for people who know my list to look for the newest movies I got recently.
If there is no way it can be generated maybe someone could think of an alternative work round that I may of missed?

Slightly related, I have noticed there is no way to have your list generated in order from latest to oldest... only oldest to latest.
Am I wrong and missed it or can it be added in a future version?

Thanks for this awsome program.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You can generate two lists.
Usually the list in "date added" order is enough, since you can easily do a text search on a title using the web browser.
Currently it is not possible to invert the sort order, sorry.
RRUU
Posts: 13
Joined: 2006-02-21 11:22:33
Location: NZ

Possible solution

Post by RRUU »

Yea inverted order would be good but thats cool.
I was learning up a bit on some java and figured a way how to get AMC to generate the latest 10. I'm sure someone who veiws the script could probably simplify it down as I am just learning. Hopefully it works flawlessly for whom ever tries it out, if so then maybe I'll advance the template with the dates etc.

For now the script generates plain black and white text of your collection with the 10 latest additions at top.

This of course will only work correctly assuming you have dated your movies correctly within AMC

Code: Select all

<html>
<body>
<script type="text/javascript">
var movies = new Array();
$$ITEM_BEGIN
movies[$$ITEM_NUMBER] = "$$ITEM_ORIGINALTITLE";
$$ITEM_END
document.write(movies[$$TOTALMOVIES] + "<br>")
document.write(movies[$$TOTALMOVIES-1] + "<br>")
document.write(movies[$$TOTALMOVIES-2] + "<br>")
document.write(movies[$$TOTALMOVIES-3] + "<br>")
document.write(movies[$$TOTALMOVIES-4] + "<br>")
document.write(movies[$$TOTALMOVIES-5] + "<br>")
document.write(movies[$$TOTALMOVIES-6] + "<br>")
document.write(movies[$$TOTALMOVIES-7] + "<br>")
document.write(movies[$$TOTALMOVIES-8] + "<br>")
document.write(movies[$$TOTALMOVIES-9] + "<br><hr>")
</script>
$$ITEM_BEGIN
$$ITEM_ORIGINALTITLE<br>
$$ITEM_END
</body>
</html>
Hope it works.
Cheers
Post Reply