Best practice for collection specific Item Browse

Hi there,

I wonder what would be the best approach to create individual item browse views for collections (i.e. items/browse?collection=XY)? My first thought was to get the current collectionId on the called /items/browse.php and do some switching based on the collectionID, but I don’t know how to get the collectionId on that page.

Would be thankful for any suggestion!

Best regards,
Eric

You get the collection ID in the url:

$collectionId = $_GET["collection"];

To get the current collection object:

$collection = get_record_by_id('Collection', $collectionId);

Oh thanks, so easy actually :slight_smile: