Jump to content

how to show only pilots with a custom fields in pilot list


Recommended Posts

Posted

Hello Guys,

I am creating 3 different pages called pilot list

The first shows me the hours reported by the company kacars

The second with the hours VATSIM

The third with hours of IVAO

I wanted to ask if you can see my page number 2 or 3 in which only the pilots IVAO (custom field) is populated by the number of VID?

Or show the pilots by Group members

I also created the appropriate module for each page

I would like to see on the second page only drivers with custom field VATSIM populated,

only in the third IVAO pilots with custom field populated.

is it possible?

  • Like 1
  • Administrators
Posted

Within the loop on the pilots_list template you could do something like:

if(PilotData::GetFieldValue($pilot->pilotid, 'VATSIMID) == '') {continue;}

which would skip to the next record in the loop if the VATSIMID field is empty.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...