Jump to:

23376 Posts in 18176 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Show more than 10 files per page in CMS

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 879 Views
  • nzjoel
    Avatar
    Community Member
    26 Posts

    Show more than 10 files per page in CMS Link to this post

    Hi
    I find it really annoying being limited to only seeing 10 files per page in the "Files & Images" part of the CMS. Is it possible to alter the CMS someway to show more than 10 at once? It would be great to see all the images/files on one page.
    Cheers
    ~Joel

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Show more than 10 files per page in CMS Link to this post

    you could add

    $this->setPageSize(15);

    to

    cms\code\AssetTableField.php
    function __construct($controller...

    but this means hacking the core code - something I rarely (really never) do - but hope this helps

  • nzjoel
    Avatar
    Community Member
    26 Posts

    Re: Show more than 10 files per page in CMS Link to this post

    Hi, thanks for your reply. I have added it and this is my code below, but it hasnt changed anything. Ive done a dev/build and a ?flush=all with not success.

    function __construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
    $this->setPageSize(15);

    Any ideas

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Show more than 10 files per page in CMS Link to this post

    try at the *end* of the init function, that is where I tested it

  • nzjoel
    Avatar
    Community Member
    26 Posts

    Re: Show more than 10 files per page in CMS Link to this post

    That worked perfectly! Thank you very much!

    879 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.