Hi,
The "Related Stories" and "Related
Story" Element Types were useful.
However i could not find related_story.mc file (did you mean
story_list.mc?)
Hence i did below in my template.
I hope it is appropriate and efficient.
regds
mallah.
--- see_also.mc ------
<%perl>
my $container = $element->get_container(
'related_stories' ) ;
return unless defined $container;
my stories = map { $_->get_related_story() }
$container->get_elements('related_story');
return unless ( stories);
</%perl>
<br>
<b>SEE ALSO</b>
<ul>
% foreach my $s ( stories) {
<li> <a href="<% $s->get_uri()
%>"><% $s->get_name()
%></a></li>
%}
</ul>
---------- end -----------------
On Mon, Apr 7, 2008 at 10:07 PM, Phillip Smith
<phillip communitybandwidth.ca> wrote:
>
> Hi there Mallah,
>
> That's exactly the kind of thing that a "related
story" sub-element can be
> used for.
>
> You'll need a related_story.mc template to handle the
display of your
> related stories.
>
> Best,
>
> Phillip.
>
>
>
> On 7-Apr-08, at 7:44 AM, Rajesh krishna Mallah wrote:
>
> > Hi,
> >
> >
> > I would want to know how i can associate multiple
stories as
> > related story to a given story.
> >
> > Eg in Story:
> > http://news.bbc.co.uk/2/hi/uk_news/england/bond/73339
80.stm
> > There are multiple stories under "SEE
ALSO" in the RHS column
> > can anyone please tell me if "related
story" is meant for this
> > kind of use ?
> >
> >
> > regds
> > mallah.
> >
>
> --
> Phillip Smith,
> Simplifier of Technology
> Community Bandwidth
> http://www.community
bandwidth.ca
>
> Don't miss the Social Tech Training:
> www.marsdd.com/socialtechtraining
> June 22-24, 2008 in Toronto
>
>
|