# Select all from assets, show # per-page

**URL:** <https://discourse.getcockpit.com/t/select-all-from-assets-show-per-page/1711>\
**Category:** Feature Request\
**Created:** [November 14, 2020, 9:11pm UTC](https://discourse.getcockpit.com/t/select-all-from-assets-show-per-page/1711 "2020-11-14T21:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelkarma](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pixelkarma/32/748_2.png) [@pixelkarma](https://discourse.getcockpit.com/u/pixelkarma)\
**Post date:** [November 14, 2020, 9:11pm UTC](https://discourse.getcockpit.com/t/select-all-from-assets-show-per-page/1711/1 "2020-11-14T21:11:00Z")

</div>

I’m using cockpit for an online gallery system and each gallery has a hundred or so images. When uploading images into the asset system, it would be great if I could choose from a drop down Show: 10, 50, 100, All Files (etc). Also, a way to “check all” for each of the items showing.

I was able to do this myself by editing the core code, setting the default limit to 1000, and adding a makeshift button that selects all the checkboxes with a certain class… but this is obviously not ideal, because if I upgrade or reinstall my changes are gone.

Thank you for time.

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [November 15, 2020, 2:06pm UTC](https://discourse.getcockpit.com/t/select-all-from-assets-show-per-page/1711/2 "2020-11-15T14:06:51Z")

</div>

The whole assetsmanager needs some rework…

The fastest fix would be to copy your modified `cp-assets.tag` file into `/path/to/cockpit/config/tags/cp-assets.tag`. Now it overrides the default one and your changes won’t be overwritten with a cockpit update.

I’m experimenting right now with some fixes and improvements in the customized assets manager of the ImageResize addon. It already has a “select all” mechanism. Maybe you get some inspiration for further improvements. I wrapped all my changes to the core file with `// custom` or `<!-- custom -->` comments.

> <https://github.com/raffaelj/cockpit_ImageResize/blob/master/assets/cp-assets.tag>

---

<div class="post-metadata">

**Author:** ![pixelkarma](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pixelkarma/32/748_2.png) [@pixelkarma](https://discourse.getcockpit.com/u/pixelkarma)\
**Post date:** [November 15, 2020, 7:04pm UTC](https://discourse.getcockpit.com/t/select-all-from-assets-show-per-page/1711/3 "2020-11-15T19:04:11Z")

</div>

Thank you for this, I’ll give it a shot.
