Hi,
I have created a custom field checkbox and trying to get a handle on entry objects where custom field is true,
MT::Entry allows load with default fields, foe eg. MT::Entry->load({ title => "New Title"});
I need something like MT::Entry->load({ my_custom_field => "VALUE"});
How to achieve this?
Any help is highly appreciated.
Once you've loaded the entry object, you can access a meta/custom field column name just as you do the others. So, if your custom field has the "foobar" basename, you can:
my $entry = MT::Entry->load({title => 'New Title'}); my $title = $entry->title; my $foobar = $entry->foobar;