1

Given a channel with unknown fields (including grids), is there a way to display all the channel's fields in a table? I need a tabular representation of the data I have so that I can sort, filter, etc.

4
  • I'm unclear why the fields would be unknown to you when you are building the templates. Can you explain? Normally you'd just build your templates off of the fields you setup. May 4 '14 at 20:02
  • Sorry, I guess I didn't explain well. I was hoping for a pre-made solution. Right now, I am looping through the fields and displaying the entries and then trying to integrate DataTables, etc. I was hoping that EE would already have something like this and I wouldn't have to reinvent the wheel. May 4 '14 at 23:54
  • Yeah EE's not really in the business of pre-made front-end stuff. It's made to be custom templated. You might be able to pull something off with github.com/putyourlightson/open-api and some sort of JS plugin. May 5 '14 at 0:12
  • OK. Thanks. Can you please put your response as an answer so I can accept it? Thanks. May 5 '14 at 0:30
1

Unfortunately EE doesn't really have any built-in facilities for automatically outputting the fields in channels. You'd have to build each template to output whatever fields you wanted.

A potential solution might be to use Open API which is an API module designed for feeding frontend data. That combined with some JavaScript should be able to get you where you want to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.