Hi Jan,
thank you very much for such an elaborated answer. But well, I will try to clear things a little and this will hopefully show why I am asking.
The "extension" I developped
Field Permissions (hide / lock fields by usergroup) (
viewtopic.php?f=4&t=3308&start=25) checks if the user is on TV or DV (or mixed) and inserts code/adjusts data. There are two possibilities.
a) a field can be LOCKED, so a user can not change the contents or
b) a field can be HIDDEN (which also locks the field, but in TV and DV the user does not see the field).
Everything works fine in TV (view, print, csv export: HIDDEN fields are not available to the user, LOCKED fields do not matter in TV).
But user hubert encountered, that in DV, while HIDDEN data is hidden and the user can not see it, the data IS shown when the user prints the records/goes to print preview.
So the reason for me asking is, that I want to improve the extension that HIDDEN data is also completely unavailable in DV / print. Currently I am using your AG Helper to hide fields in DV, but it would be better to remove them completely .... and as I am targeting some kind of easy-to-install-extension, I am trying to prevent hacking the generated print pages (/templates/tablename_templateDVP.html), but simply "removing" (/overwriting) the content from the record for DV and print.
I hope the reason for my question is more transparent now.
Olaf