Hi Guys,
There’s a problem that I run into very often. Sometimes clients want to add data sequentially (for example: a client of mine, a bookings-agency), wants to add a list of releases for every artist), but having them add a Page for this (so I can loop through them with getResources) is kind of overkill. What would be perfect for me to have a tab besides "Template Variables" called something like "Resource Items". Fields could be defined in the same way that template-vars could be assigned to templates:
- Add Item-type
- Add fields to Item-type
- Bind Item-type to template
Then in the "Resource Items" have them be able to add an Item with all the fields associated. Then you’d need a getResources-like architecture to loop through them, like so (warning: aircode ahead)
loop the items
[[getItems
?type=`Releases`
&sortby=`releaseDate`
&sortdir=`ASC`
&tpl=`releaseRowTpl`
&outerTpl=`releaseOuterTpl`
]]
releaseRowTpl
<tr><td>[[§releaseTitle]]</td><td>[[§releaseArtist]]</td><td>[[§releaseDate]]</td></tr>
releaseOuterTpl
<h2>Releases</h2>
<table>
[[+row]]
</table>
I understand the need for pages etc., but they’re just plain overkill for alot of cases, and I think adding this to Revo as standard (or as a 3PC) would make Revo much more flexible for me.