Hi
i was trying to export some pages data to csv or pdf files
the exported data includes some tvs too but few pages have tvs value and other pages have any values for data
but when i try to loop through the data using getChunk those empty/unset tv placeholders still showing as tags instead of empty values
ex: mychnkk for csv
[[+menutitle]],[[+pagetitle]],[[+tv.course_start_date]],[[+tv.course_end_date]],[[!+tv.venuename]],[[+tv.cf]]
my snippet call to loopthough
$output.=$this->modx->getChunk($tpl,$resourceArray)."\n";
and the output of each iteration is
123456,bbmmmmmmmmmmm,[[+tv.course_start_date]],[[+tv.course_end_date]],[[!+tv.venuename]],"Financial"
i understand those tvs have not set for some resources and modx still waiting to set placeholders for this empty placeholders
but how i can simply igonre those empty placeholders if its not set for a resource.we have many tvs associted with a resource so its not possible to check if a placeholder/tv is empty or not and client will change the chunk with any new tvs
tried parsechunk but its throwing errors with some array to string conversion (the pages are CR so it have some properties too)
i appreciate any help here
Thanks
Venu