|
From: <as...@en...> - 2001-04-12 18:49:09
|
Pudge responds:
> Well, you can just add that logic to the template itself. For example,
you
> have now:
>
> [% IF magic;
> title = "...";
> ELSE;
> title = story.title;
> END %]
>
> You can add on top of that:
>
> [% IF foo == 1;
> magic = 1;
> ELSE;
> magic = 0;
> END %]
>
> However, I am not sure what you want to do, exactly. It looks like the
> behavior you want is the behavior that it has right now. How exactly
would
> you want to change the behavior?
>
> Although now that I look at it, the code in dispStory() looks busted. It
> looks like:
>
> magic => (!$full && index($story->{title}, ':') == (-1
> && ($story->{section} ne $constants->{defaultsection})
> && ($story->{section} ne $form_section))),
>
> But should be this:
>
> magic => (!$full && index($story->{title}, ':') == -1
> && ($story->{section} ne $constants->{defaultsection})
> && ($story->{section} ne $form_section)),
>
> Anyway, if you can help me out with your needs, maybe we can figure it
out.
I'm not after anything fancy, just the usual behavior from Slash1, but as it
stands, magic is always off and sections don't ever appear as part of
titles. I changed the code as you point out in Slash.pm, but still none.
Basically, I want it off everywhere except on the front page, and the magic
=> code is a little beyond me.
I'm looking at Slashcode to see if it's working there and yes it is. But I
notice that on one YASS story (NoLogo.org up and running with Bender), YASS
appears both in the title and in the storylink although there are no
comments. But in LinuxHardware.org Is A Slashsite, YASS doesn't appear in
storylink. Do you reckon magic is just not set up right at the moment?
Adam
as...@en...
|