I have managed to get many DCR's processed in my Template, but am struggling to sort them by any of my fields.
I'm not that worried about date calculations at the moment
( I know i'll probably have to change my text date into a number, or use Date::Manip), just the syntax to be able to sort a multi hash successfully.
Here is my hash.
$dcrhash{$count}{'File'}=$dcr;
$dcrhash{$count}{'ImgLarge'}=iwpt_dcr_value('$root.ImageLarge');
$dcrhash{$count}{'ImgCapt'}=iwpt_dcr_value('$root.ImageLargeCaption');
$dcrhash{$count}{'Title'}=iwpt_dcr_value('$root.Title');
$dcrhash{$count}{'Date'}=iwpt_dcr_value('$root.Date');
$dcrhash{$count}{'PageLink'}=iwpt_dcr_value('$root.File To Generate');
$dcrhash{$count}{'IntroStory'}=iwpt_dcr_value('$root.IntroductoryCopy');
$dcrhash{$count}{'Modified'} =`iwattrib $dir/$dcr moddate`;
Many thanks.
Piers
Edited by Piers on 12/09/03 01:39 PM (server time).