Have a brainteaser...
I currently have News Items which have comments enabled so that the News Item can be rated. Following Greg Sherwood's example on his blog here http://gregsherwood.blogspot.com.au/2008/03/rating-content-and-calculating-average.html - I have created a system whereby the average rating is stored in the metadata that is applied to all of the news items.
Now I am creating an asset listing page where the news articles are listed and ordered by the most popular to the least popular. Easy enough to order by the metadata value and I've also used the HTML5 <progress> tag to make a nice little bar graphic.
Now I was thinking of taking this one step further and incorporating D3 JS logic within the page. Now to do that, I am looking for a way to 'print out' all of the metadata values into an array.
Right now, I am having difficulty trying to construct a way to do it. I have attempted to apply a paint layout to the asset listing but that's not working out either. Problem is that I am trying to list out the data on the page and at the same time 'list out' the metadata into the JS array and it's really a conflict of presentation.
I think the only way to get around it is to make a separate asset listing just to get the metadata value out just for inserting into the array, AND
another asset listing to present the data on the page...