Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Contributor data and bric_soap

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


greg at node79

Jul 24, 2008, 7:45 PM

Post #1 of 4 (240 views)
Permalink
Contributor data and bric_soap

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


acaul at rand

Jul 25, 2008, 7:06 AM

Post #2 of 4 (218 views)
Permalink
Re: Contributor data and bric_soap [In reply to]

> 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.


lannings at who

Jul 25, 2008, 7:47 AM

Post #3 of 4 (215 views)
Permalink
Re: Contributor data and bric_soap [In reply to]

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.


david at kineticode

Jul 25, 2008, 11:17 AM

Post #4 of 4 (216 views)
Permalink
Re: Contributor data and bric_soap [In reply to]

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.

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.