Stories
Slash Boxes
Comments
OSTG
Thinkgeek
Slashdot
NewsForge
Linux.com
ITMJ
IT Product Guide
SourceForge
freshmeat
Newsletters
Slashcode
Slash Open Source Project
Navigation
About
FAQ
Journals
Messages
Topics
Editors
Older Stuff
Past Polls
Submit Story
Create Account/Log in
Stuff
Brian (aka Krow)
Pudge
ACS
Tangent
Use Perl
This discussion has been archived. No new comments can be posted.
Adding variables to stories?
More
|
Login
The Fine Print:
The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to use
the classic discussion system
instead. If you
login
, you can remember this preference.
Adding variables to stories?
3
Comments
More
|
Login
/
Full
Abbreviated
Hidden
More
|
Login
Please Log In to Continue
Log In
Nickname
Password
Public Terminal
[
Create a new account
]
Loading... please wait.
did you try it?
(
Score:2
)
by
tf23 (175)
If you pull up the template used to display a story, "display;article;default" in it's documentation it states:
* story = story data structure
If the story data structure is anything like the user structure (I'm guessing it is) then in your template you could do
[% IF story.paramname == blah %]
do something
[% END %]
What would be nice is a param-editor in the story editor interface
:)
--
lottadot
[lottadot.com]
Re:did you try it?
(
Score:2
)
by
Krow (986)
Yep, and what parameters show up to editors comes from the sections_extras table. I would love to see an editor for that table
:)
--
--
You can't grep a dead tree.
Re:did you try it?
(
Score:1
)
by
chromatic (177)
on Wednesday February 06 2002, @04:46PM (
#4172
)
Homepage
I have one in various states of disarray. It needs some attention. It'll arrive, sometime.
Parent
Get More Comments
did you try it? (Score:2)
* story = story data structure
If the story data structure is anything like the user structure (I'm guessing it is) then in your template you could do
[% IF story.paramname == blah %]
do something
[% END %]
What would be nice is a param-editor in the story editor interface
lottadot [lottadot.com]
Re:did you try it? (Score:2)
--
You can't grep a dead tree.
Re:did you try it? (Score:1)
Parent