
david at kineticode
Jul 25, 2008, 11:17 AM
Post #4 of 4
(216 views)
Permalink
|
Someone could add a search param to search by contrib name… David On Jul 25, 2008, at 07:47, Scott Lanning wrote: > Through bric_soap alone, though, I think it's a no go. > > On Fri, 25 Jul 2008, Ashlee Caul wrote: >>> Hi everyone, >>> I'm trying to do a bric_soap story list to match stories by >>> contributor. I have the contributor information (fname, lname, >>> etc.) but not the contributor ID, which is what story->list_ids >>> wants. >>> Is there some way to do this story search with the contributor >>> text fields, or to look up the contributor ID somehow with >>> bric_soap? >>> -Greg >> >> >> Just had this thread a few days ago. You will have to grab the >> contributor object first and then from that get the contributor ID. >> >> >> >>> "I have a name, for example Ashlee Caul, ,and I want to find the >>> contributor with lname Caul and fname Ashlee. I do not know >>> whether that contrib exists or not. In a template, how can I >>> search for a contrib by name?" >> >> my $grp = Bric::Util::Grp::Person->lookup({ name => >> $contrib_type_name }); >> my $contrib = Bric::Util::Grp::Parts::Member::Contrib->list({ >> grp => $grp, >> fname => 'Ashlee', >> lname => 'Caul', >> }); >> >> __________________________________________________________________________ >> >> This email message is for the sole use of the intended recipient(s) >> and >> may contain confidential information. Any unauthorized review, use, >> disclosure or distribution is prohibited. If you are not the intended >> recipient, please contact the sender by reply email and destroy all >> copies >> of the original message.
|