List Info

Thread: Quick question: $story->get_cover_date




Quick question: $story->get_cover_date
user name
2007-05-25 11:13:50
Silly question here (need more coffee!): I'm working on a
template  
for a sub-element of a story -- a related story in this case
-- and  
I'm trying to get the cover date of the actual
(parent/container)  
story, not the related story, however
$story->get_cover_date is  
returning the date(s) of the related stories.


--
Phillip Smith,
Simplifier of Technology
Community Bandwidth



Re: Quick question: $story->get_cover_date
user name
2007-05-25 11:55:58
> Silly question here (need more coffee!): I'm working on
a template  
> for a sub-element of a story -- a related story in this
case -- and  
> I'm trying to get the cover date of the actual
(parent/container)  
> story, not the related story, however
$story->get_cover_date is  
> returning the date(s) of the related stories.


Are you by chance doing this?

foreach $story (related_stories) {
	#need more coffee
}


--------------------

This email message is for the sole use of the intended
recipient(s) and
may contain privileged 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.



Re: Quick question: $story->get_cover_date
user name
2007-05-25 12:07:20
On May 25, 2007, at 12:55 PM, Ashlee Caul wrote:

>> Silly question here (need more coffee!): I'm
working on a template  
>> for a sub-element of a story -- a related story in
this case --  
>> and I'm trying to get the cover date of the actual
(parent/ 
>> container) story, not the related story, however
$story- 
>> >get_cover_date is returning the date(s) of the
related stories.
>
>
> Are you by chance doing this?
>
> foreach $story (related_stories) {
> 	#need more coffee
> }

Nope... but I just noticed that I had a $story and
$rel_story swapped  
in the related_story.mc! Definitely need more coffee...

/me heads for the kitchen.



--
Phillip Smith,
Simplifier of Technology
Community Bandwidth



[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )