Forum

Thread tagged as: Question, Addons, Gallery

Gallery app: get current album category and display related albums

Anyone knows how to do it?

<?php perch_gallery_albums(array(
                    'template' => 'my_template.html',
                    'category' =>  [[CURRENT ALBUM CATEGORY]],
)); ?>
Raul Serrano

Raul Serrano 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't believe Gallery has support for categories.

Looks a must for further versions, any kind of portfolio website need them. Then I have to use Blog instead...

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can implement categories on Gallery, but it doesn't support the newer centralised Categories app.

Then I have to install Categories App? Witch are the differences?

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, it doesn't support the Categories app.

Drew, can you tell me the difference between Categories add-on and centralised?

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's no categories add-on that I'm aware of. Perch itself has a centralised Categories app that handles categories for all core functionality and modern add-ons. Really old add-ons like Gallery aren't set up to use that, but can implement their own category functionality.