» Wed Oct 25, 2017 2:52 pm
Of course, sure!
I edited the csv.php file adding new parameter in csv_columns_handler and csv_headers_handler function separately, cause they use different values for indexing columns (I also added these two parameters to csv_reader_handler function, although I'm not sure, maybe this is not necessary).
All this to be able to control the input through my template, where the csv is imported (ie <cms:csv_columns yourparameter='RecNo, Name'>, where these values are your header names and <cms:csv_headers yourparameter2='1,2'>, where these are column numbers - corresponding to column values). This could probably be uniform (one parameter), column numbers for both, i guess, easy..
So then I got these strings, exploded them into arrays and added the conditions in foreach and for loops, for columns and headers respectively, if in_array (or !in_array, which ever you need) and then set the values and headers.
I hope this is clear enough, if you have any further questions, just ask away