How can I retrieve items with an empty field?

More
4 years 10 months ago #78044 by grabit
I want to find in the backend a list of items that have not yet info in a specific field.

Is it possible?

For instance I am looking for items where the international address is still empty.

Thanks for your help.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #78049 by grabit
I am pushing top this question because I need to find this issue in more than 1000 items.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #78051 by micker
i don't think ...
maybe you can add filed in item list bakend

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #78101 by grabit
Hi Micker,

I am lost with this issue.

My idea was to store properties as field for the "longitude" in a text field called "Longitude"

The create a radio-button field "ismapset" with values 0 for no and 1 for yes and then make an automatic value creation with the prop version in php.

Here is my code
Code:
<?php $F = & $item->fields; if ( isset($F['member-longitude']) ) { $vals = "0"; } else { $vals = "1"; } return $vals;

The problem is that the code returns always "0" in both case empty or not.

Where is my mistake?

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #78107 by micker
try !empty instead of isset

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #78108 by grabit
Still 0 (no) as answer.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.393 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline