default userpic

How to load entry object through custom field

Vote 0 Votes

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.

1 Reply

| Add a Reply
  • Got it:
    @entry = MT::Entry->search_by_meta('field.', '');
    I was trying this previously too, but apparently unless you create an instance of MT "my $mt = MT->instance();" - object.pm throws error

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1771 6153

Last Topic: Preview Template - Where can I find it? by Dice on Feb 6, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

693 2907

Last Topic: database upgrade hangs - upgrading to 4.37 by CrankyProfessor on Feb 1, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

221 710

Last Topic: Publish queue cache coherence issue by Istvan Kallai on Jan 27, 2012