Silla.IO icon indicating copy to clipboard operation
Silla.IO copied to clipboard

Add export hooks for each data field within Base\Resource

Open sandio opened this issue 10 years ago • 3 comments

sandio avatar Jan 12 '15 14:01 sandio

Any ideas how to implement this?

pnikolov avatar Mar 11 '16 08:03 pnikolov

What about magic __call() for example

function export_created_on() {}
function export_updated_on() {}
function export_name() {}
...

@kalins ?

pnikolov avatar Apr 12 '16 14:04 pnikolov

I've found a better solution. What about adding HTML support to the generated export and run the list view for each entity attribute? This will reuse all the code used for the listing in the data tables. This approach will be useful for the PDF export, but for the CSV, maybe we should keep the raw DB data.

pnikolov avatar Aug 04 '16 15:08 pnikolov