unclecheese / silverstripe-dashboard

Dashboard module for SilverStripe 3
GNU General Public License v2.0
46 stars 35 forks source link

Allow GridField / ModelAdmin panels to have their own templates #58

Closed nfauchelle closed 9 years ago

nfauchelle commented 9 years ago

I have some panels where just the Title isn't good enough. With contact for submissions I also want to see the date of the submission.

Updated the two panels to check and use a custom template if there is one. Since the template name uses elements from the config it means the panels can have their own templates.

Updated the methods which get the items so the whole object is passed back to the template - with the EditLink added to the object so that can still be used.

Removed the screen shot from the README as github didn't like it.

unclecheese commented 9 years ago

This is great. Cheers. Can you document the naming convention of the custom templates in the readme, or at least the source code?

nfauchelle commented 9 years ago

@unclecheese I had updated the README in the pull along with an example for each (it's at the bottom of the README). Was it not clear?

unclecheese commented 9 years ago

Oh! Just saw it. Sorry about that. Thanks again.