Mailing List Archive

Related Story
I'm trying to write a code for an element. I've already set up the element
as being related to a story, which is forcefully. So after I published the
story without a link, it threw out an error, saying "Can't call method
"get_site_id" on an undefined value". Sometimes I want to relate to a story
and sometimes I don't, so I'm wondering in what code I can make it
published. Anyone can shows his/her generosity?

Thanks,
Pai
Re: Related Story [ In reply to ]
On Oct 21, 2009, at 12:32 PM, Pai Han wrote:

> I'm trying to write a code for an element. I've already set up the
> element
> as being related to a story, which is forcefully. So after I
> published the
> story without a link, it threw out an error, saying "Can't call method
> "get_site_id" on an undefined value". Sometimes I want to relate to
> a story
> and sometimes I don't, so I'm wondering in what code I can make it
> published. Anyone can shows his/her generosity?

Hi Pai,

Can you post examples of your template code?

Best,

David