Page 1 of 1

visibility of fields if i include a __sql__ in my fields.ini

PostPosted: Fri Mar 27, 2009 8:18 am
by chapin
Hello!

I included a global directive in my fields.ini It looks something like this:

------------------------------------------------
__sql__ = "SELECT A, B, C ...."

[Address]
widget:type = textarea
visibility:csv =hidden

[Phone]
widget:type = textarea
visibility:csv =hidden

[Name]
widget:type = textarea

[FamilyName]
widget:type = textarea

.
.
.

------------------------------------------------


When I click on csv-export i get the fields Name and FamilyName, I dont get Address and Phone which is exactly what I want. But, I also get A,B,C
which I would like to exclude. How do I procede to exclude those fields from the cvs-file?

Thanks in advance
Chapin

Re: visibility of fields if i include a __sql__ in my fields

PostPosted: Mon Mar 30, 2009 11:56 pm
by chapin
chapin wrote:Hello!

I included a global directive in my fields.ini It looks something like this:

------------------------------------------------
__sql__ = "SELECT A, B, C ...."

[Address]
widget:type = textarea
visibility:csv =hidden

[Phone]
widget:type = textarea
visibility:csv =hidden

[Name]
widget:type = textarea

[FamilyName]
widget:type = textarea

.
.
.

------------------------------------------------


When I click on csv-export i get the fields Name and FamilyName, I dont get Address and Phone which is exactly what I want. But, I also get A,B,C
which I would like to exclude. How do I procede to exclude those fields from the cvs-file?

Thanks in advance
Chapin



My mistake!!! I found the solution myself, fields A,B and C were from a third table which was involved in my query. So I simply updated the fields.ini file for tath table and thats all.

cheers