Am I reading right that you want to use the metadata() function to get the total items?
Or, said another way to practice user story writing ;)
As a theme builder, when I am building a view page that includes one or more $site objects, I want metadata($site, 'total_items') to return the total number of items from that site.
Needs getProperty($property) method on $site that will switch around $property = 'total_items'
Works if metadata($site, 'total_items') returns the correct number of items for that site.
Am I reading right that you want to use the
metadata()
function to get the total items?Or, said another way to practice user story writing ;)
As a theme builder, when I am building a view page that includes one or more
$site
objects, I wantmetadata($site, 'total_items')
to return the total number of items from that site.Needs
getProperty($property)
method on $site that will switch around$property = 'total_items'
Works if
metadata($site, 'total_items')
returns the correct number of items for that site.