From 45924f14024e2c7ac07ab3823379bf50e4c1d219 Mon Sep 17 00:00:00 2001 From: "bob (Plastyk)" Date: Tue, 11 Nov 2014 15:45:34 +1030 Subject: [PATCH 1/2] Updating Site Reports documentation to show the Silverstripe 3.1 method of adding custom reports. --- docs/en/reference/_images/sitereport.png | Bin 10535 -> 10373 bytes docs/en/reference/site-reports.md | 99 +++++++++-------------- 2 files changed, 39 insertions(+), 60 deletions(-) diff --git a/docs/en/reference/_images/sitereport.png b/docs/en/reference/_images/sitereport.png index bc0a41dc1a00f774715481ccb85d16d019df4202..c1b4292144a16185bfcedc1be729b2946fcda64e 100644 GIT binary patch literal 10373 zcmZv?WmsE5*ER~J6p9wNrW7ddP^_U)ptw7f2Dbvm8;ZLWFK$6wEI37jy9Ozg1PJZ~ zcPMb^^Ss}Co$EX2M`k8#tywc`&3*5+_fEcPsL2!J(c)oXU=S)Qyw}3Oz=S<~z_?fs zl8(+kISdRe3=I_>+57wZ%GSQprtXTCzN)tVw9@*L#;(KDi;bPVsXvH}vc}x%mUL)C zP8IBDU3(d<=f|(M)ROv?;=07b+8@8#%UgPj8alJen;;cU*_F-twXM+Rp2E70yqea; z!kVtpDfbviW_e?ALnk?-D5I!RVSNYXDrMa?FiU)!bif|8l=Q`BKP$j!R+l{(gOZJsVp4EgQ-q>jG`=E^X@KRq;Js9A|&;r1SGP^7L|M z4#g)V%4izQ6IlI%U!7gvjZNBtM&{%F{S~XEEg{QmO!P00w`SnuV_$+IYZ_XMD`20%11IOZ2LpqGqChoW zqll^V_?(i)-HQ*FcFSD@Gm~`-clT*ODk#79w|4c!RdpUskFwP)N5{n-j+N)Yh6BPN z^!`J3UE6PGIP(y(2M=hk{&kUquHZ7-LC8aej z%}?3TMJ}{nAUFbjf1DU@DPR;bd%IZ_?e-?2FqTtZM#dTmOHUr#VR{dBkg#s5O<_>~ zj`3yaV|YcN>}L&LJ(s!_ZU_0PO4rIjsIhra$IKsQC3y~OTPAw#Turx*wUwp&Q{LnO z!KkjQ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Fb4&vA`kBgl?(w|fGYGc`alYhrGDYLcMp960p+;}5t@ITY%!H6pa5d)ohD zvr^fHbt_sAaf!XZO3Z&EVgD1UCxZSH`F`y{dB<({jP3k$KVmH{a{bQ*KA(*f^k_)X zf@$P6&fJ3esMowa;ziY|WWCejW#eoaXeni5SCxQ>T%Vbo+mC&-;Ml)+>k|9UI-*i8 zEQ2rGURx!M?hGFVd$SNgtm8S-c4pP5H_C?BJn*g?_3<>ZHI$|_kRkJ+25!Pc=9i~U z$wV5CkMr)OVWXs9vc6Usu9Vll+Jp&`r%kiTwYtTq5xk@8*!@WX4-`-eWpf@N`imhm zKa^O+c`^R9^H1^LyHWV*adpehiDa00;1ZcoM?30(2lVg;H_=2d51MYDq#o zgB$>~=1-Y%An|){_}wfRe>Oh5j{j4|`{ln5^1;*mzZjZ~AjD_s??CwLf2?VIU4V`d zP=7pU@{9yJi4D){r;+^68u+?{KOltJi*D-=sl=ksH6Wr}ZvVXalOas0)A9v1ApW=Y zuon40DgU(6{{Orot(oWl3AX=!jv`bK!mF?l>rrFDK7wW7o@o)L*xv<#CA&~j(7ewc Q - - -Now this won't do anything! You will just get a blank report that doesn't work! So for this to do something we have to -fill in these 3 methods title() records() and fieldsToShow() till we have something like this. For example if you want -to list every Page on your site! - -CustomSideReport.php - - :::php - sort("Title"); + // what we want the report to return and what order + public function sourceRecords($params = null) { + return Page::get()->sort('Title'); } - public function fieldsToShow() { - // fields you want to display. This will display a list of titles which link to the page in the cms. Handy! - return array( - "Title" => array("NestedTitle", array("2")), + // which fields on that object we want to show + public function columns() { + $fields = array( + 'Title' => 'Title' ); - } + + return $fields; + } } - ?> - - -Reload the CMS and test it out for your self! You should be able to select the report and view all the pages. + +More useful reports can be created by changing the `DataList` returned in the `sourceRecords` function. ## Notes -* Your CustomSideReport_ReportName must extend SideReport! -* You can have more then 1 report in the 1 file. Actually its recommended!. You should create 1 CustomSideReport.php -file and add class's as you need them inside that for each report. +* `CustomSideReport_ReportName` must extend `SS_Report` +* It is recommended to place all custom reports in the 1 file. +** Create a *CustomSideReport.php* file and add classes as you need them inside that for each report ## TODO -* How to format and make nicer reports. -* More examples. +* How to format and make advanced reports. +* More examples ## API Documentation `[api:ReportAdmin]` \ No newline at end of file From 89ff05933495f664acfbf97e44180e7331277691 Mon Sep 17 00:00:00 2001 From: 3Dgoo Date: Tue, 11 Nov 2014 15:52:45 +1030 Subject: [PATCH 2/2] Site Reports documentation fix Fixing typo in Site Reports documentation. Adding more detail to Custom Report example. --- docs/en/reference/site-reports.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/reference/site-reports.md b/docs/en/reference/site-reports.md index 82d725d06..1ea63b466 100644 --- a/docs/en/reference/site-reports.md +++ b/docs/en/reference/site-reports.md @@ -19,7 +19,7 @@ By default the CMS ships with several basic reports: * Pages with no content * Pages edited in the last 2 weeks -Modules may come with ther own additional reports. +Modules may come with their own additional reports. ## Creating Custom Reports @@ -28,7 +28,7 @@ Custom reports can be created quickly and easily. A general knowledge of SilverS Inside the *mysite/code* folder create a file called *CustomSideReport.php*. Inside this file we can add our site reports. -The following example will list every Page on the current site. +The following example will create a report to list every page on the current site. ###CustomSideReport.php @@ -40,7 +40,7 @@ The following example will list every Page on the current site. return 'All Pages'; } - // what we want the report to return and what order + // what we want the report to return public function sourceRecords($params = null) { return Page::get()->sort('Title'); } @@ -61,7 +61,7 @@ More useful reports can be created by changing the `DataList` returned in the `s * `CustomSideReport_ReportName` must extend `SS_Report` * It is recommended to place all custom reports in the 1 file. -** Create a *CustomSideReport.php* file and add classes as you need them inside that for each report + * Create a *CustomSideReport.php* file and add classes as you need them inside for each report ## TODO @@ -69,4 +69,4 @@ More useful reports can be created by changing the `DataList` returned in the `s * More examples ## API Documentation -`[api:ReportAdmin]` \ No newline at end of file +`[api:ReportAdmin]`