18590 Posts in 4875 Topics by 2285 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 549 Views |
-
Show more than 10 files per page in CMS

3 December 2010 at 2:44pm
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 -
Re: Show more than 10 files per page in CMS

3 December 2010 at 10:33pm
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
-
Re: Show more than 10 files per page in CMS

4 December 2010 at 10:46am
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
-
Re: Show more than 10 files per page in CMS

5 December 2010 at 1:31am
try at the *end* of the init function, that is where I tested it
-
Re: Show more than 10 files per page in CMS

5 December 2010 at 8:40am
That worked perfectly! Thank you very much!
| 549 Views | ||
|
Page:
1
|
Go to Top |


