|
List Info
Thread: what property of a Story will hide the story from Story->list()
|
|
| what property of a Story will hide the
story from Story->list() |

|
2008-02-22 16:21:37 |
I have an 'archives' story that rounds up all press
coverage.
The template gets its data like this:
my $pcs = scalar Bric::Biz::Asset::Business::Story->list
({
element_key_name => 'press_coverage',
publish_status => 1
});
This works fine. But now I want to remove a single story
from the list,
temporarily, while content editors do some research about
it.
I tried checking it out, then checking in 'and Shelve'ing. I
expected
that to change the publish_status. It did not.
I looked through the api docs at
http://bricolage.cc/docs/current/api/?Br
ic::Biz::Asset::Business::Story.
Nothing jumped out as the obvious answer.
'active' looked promising, but I don't see a way in the UI
to mark a
story 'inactive'.
Any ideas?
Thanks,
-jason
Jason Brackins | Web UI Developer
jason.brackins redfin.com
|
|
| Re: what property of a Story will hide
the story from Story->list() |

|
2008-02-22 16:27:26 |
Jason Brackins wrote:
> I have an 'archives' story that rounds up all press
coverage.
> The template gets its data like this:
>
> my $pcs = scalar
Bric::Biz::Asset::Business::Story->list ({
> element_key_name => 'press_coverage',
> publish_status => 1
> });
>
> This works fine. But now I want to remove a single
story from the list,
> temporarily, while content editors do some research
about it.
>
> I tried checking it out, then checking in 'and
Shelve'ing. I expected
> that to change the publish_status. It did not.
>
> I looked through the api docs at
> http://bricolage.cc/docs/current/api/?Br
ic::Biz::Asset::Business::Story.
> Nothing jumped out as the obvious answer.
>
> 'active' looked promising, but I don't see a way in the
UI to mark a
> story 'inactive'.
>
> Any ideas?
>
> Thanks,
> -jason
You could add
inactive => 1
so that stories that are on a desk don't get included in the
list.
John
|
|
| RE: what property of a Story will hide
the story from Story->list() |

|
2008-02-22 16:29:14 |
Jason,
If you want to target this specific story, I think you could
use:
exclude_id - A story ID to exclude from the list. May use
ANY for a list
of possible values.
Chris
> -----Original Message-----
> From: Jason Brackins [mailto:jason.brackins redfin.com]
> Sent: Friday, February 22, 2008 2:22 PM
> To: users lists.bricolage.cc
> Subject: what property of a Story will hide the story
from Story-
> >list()
>
> I have an 'archives' story that rounds up all press
coverage.
> The template gets its data like this:
>
> my $pcs = scalar
Bric::Biz::Asset::Business::Story->list ({
> element_key_name => 'press_coverage',
> publish_status => 1
> });
>
> This works fine. But now I want to remove a single
story from the
list,
> temporarily, while content editors do some research
about it.
>
> I tried checking it out, then checking in 'and
Shelve'ing. I expected
> that to change the publish_status. It did not.
>
> I looked through the api docs at
>
http://bricolage.cc/docs/current/api/?Bri
c::Biz::Asset::Business::Story
> .
> Nothing jumped out as the obvious answer.
>
> 'active' looked promising, but I don't see a way in the
UI to mark a
> story 'inactive'.
>
> Any ideas?
>
> Thanks,
> -jason
>
> Jason Brackins | Web UI Developer
> jason.brackins redfin.com
>
|
|
| RE: what property of a Story will hide
the story from Story->list() |

|
2008-02-22 16:39:00 |
That could work.
I would prefer a way to edit the story via the UI that makes
the list
code not find it. I want the content editors to be able to
remove the
story from the list (without deleting it).
Thanks,
-jason
-----Original Message-----
From: Schults, Chris [mailto:chris.schults pccsea.com]
Sent: Friday, February 22, 2008 2:29 PM
To: users lists.bricolage.cc
Subject: RE: what property of a Story will hide the story
from
Story->list()
Jason,
If you want to target this specific story, I think you could
use:
exclude_id - A story ID to exclude from the list. May use
ANY for a list
of possible values.
Chris
> -----Original Message-----
> From: Jason Brackins [mailto:jason.brackins redfin.com]
> Sent: Friday, February 22, 2008 2:22 PM
> To: users lists.bricolage.cc
> Subject: what property of a Story will hide the story
from Story-
> >list()
>
> I have an 'archives' story that rounds up all press
coverage.
> The template gets its data like this:
>
> my $pcs = scalar
Bric::Biz::Asset::Business::Story->list ({
> element_key_name => 'press_coverage',
> publish_status => 1
> });
>
> This works fine. But now I want to remove a single
story from the
list,
> temporarily, while content editors do some research
about it.
>
> I tried checking it out, then checking in 'and
Shelve'ing. I expected
> that to change the publish_status. It did not.
>
> I looked through the api docs at
>
http://bricolage.cc/docs/current/api/?Bri
c::Biz::Asset::Business::Story
> .
> Nothing jumped out as the obvious answer.
>
> 'active' looked promising, but I don't see a way in the
UI to mark a
> story 'inactive'.
>
> Any ideas?
>
> Thanks,
> -jason
>
> Jason Brackins | Web UI Developer
> jason.brackins redfin.com
>
|
|
| RE: what property of a Story will hide
the story from Story->list() |

|
2008-02-22 16:41:22 |
Hmmm. I don't think inactive, in the Story->list sense,
means the same
thing as the 'Active Stories' sense.
When I tried inactive => 1 I got zero results back.
I tried playing with active (0 and 1), and neither had the
results I
expected.
Thanks,
-jason
-----Original Message-----
Jason Brackins wrote:
> I have an 'archives' story that rounds up all press
coverage.
> The template gets its data like this:
>
> my $pcs = scalar
Bric::Biz::Asset::Business::Story->list ({
> element_key_name => 'press_coverage',
> publish_status => 1
> });
>
> This works fine. But now I want to remove a single
story from the
list,
> temporarily, while content editors do some research
about it.
>
> I tried checking it out, then checking in 'and
Shelve'ing. I expected
> that to change the publish_status. It did not.
>
> I looked through the api docs at
>
http://bricolage.cc/docs/current/api/?Br
ic::Biz::Asset::Business::Story.
> Nothing jumped out as the obvious answer.
>
> 'active' looked promising, but I don't see a way in the
UI to mark a
> story 'inactive'.
You could add
inactive => 1
so that stories that are on a desk don't get included in the
list.
John
|
|
| RE: what property of a Story will hide
the story from Story->list() |

|
2008-02-22 17:31:21 |
I see. Then perhaps you could use the expiration date:
unexpired - A boolean parameter. Returns a list of stories
without an expire date, or with an expire date set in the
future.
Or, if this will be a regular thing, and using the above
doesn't work, then perhaps you can create an element and use
this:
data_text - Text stored in the fields of the story element
or any of its subelements. Only fields that use the
"short" storage type will be searched. May use ANY
for a list of possible values.
Chris
________________________________
From: Jason Brackins [mailto:jason.brackins redfin.com]
Sent: Fri 2/22/2008 2:39 PM
To: users lists.bricolage.cc
Subject: RE: what property of a Story will hide the story
from Story->list()
That could work.
I would prefer a way to edit the story via the UI that makes
the list
code not find it. I want the content editors to be able to
remove the
story from the list (without deleting it).
Thanks,
-jason
|
|
| Re: what property of a Story will hide
the story from Story->list() |

|
2008-02-25 08:37:49 |
On 22-Feb-08, at 6:31 PM, Schults, Chris wrote:
> data_text - Text stored in the fields of the story
element or any of
> its subelements. Only fields that use the
"short" storage type will
> be searched. May use ANY for a list of possible
values.
What is the "short storage type" ?
--
Phillip Smith,
Simplifier of Technology
Community Bandwidth
http://www.community
bandwidth.ca
|
|
| RE: what property of a Story will hide
the story from Story->list() |

|
2008-02-25 12:44:40 |
> > data_text - Text stored in the fields of the story
element or any of
> > its subelements. Only fields that use the
"short" storage type will
> > be searched. May use ANY for a list of possible
values.
>
> What is the "short storage type" ?
I'm assuming this means the same thing discussed in my
"Advanced search
questions" thread, which means that this does not
search text areas,
which are commonly used for paragraph elements and the
like.
However, in this instance, I think a "short" field
would work just fine.
Though, I've never used this list parameter.
Chris
|
|
[1-8]
|
|