I want to export all records of a given content type to a csv file. I've checked some allready existing stuff to do this but nothing really meets my demands or have functionality I do not wish to add.
I'm new to drupal and made some basic custom modules allready so I also want to make a module that does this from scratch so I learn stuff instead of using pre-made stuff and having no clue whats going on.
When you go to the module you see a dropdown box filled with all the content types in my system (This is working). When I select a content type I want a table with all the records of that content type.
under this table I want a button Export to CSV. when This is pressed a download screen should popup. Im only puzzled on how to make the .CSV file with PHP.
The dropdown list and the generated table is almost working as we speak.
anybody that can help me?