Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Getting parameters in 'story_summary' New Code
By phill , Section Code []
Posted on Fri Jan 16, 2004 at 12:00:00 PM PST
I am trying to move some of the changes that I've made to the scoop code into boxes so that I can move my site to a scoop host.

I'm at an impasse, however. I am trying to modify the topic_img tag inside the story_summary block so I've replaced it with a box that does the same thing with one major difference: I cannot get the tid so I can check whether or not it is a diary story. I've tried adding my $story=shift; and I've looked through the code in lib/Scoop. I can't seem to find a $S->somthingarouther that will return the tid or even the section.

Any thoughts?

< Updated hotlist_flex box | the new Scoop Admin Guide >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· scoop host
· More on New Code
· Also by phill

Story Views
  27 Scoop users have viewed this story.

Display: Sort:
Getting parameters in 'story_summary' | 6 comments (6 topical, 0 hidden)
well (none / 0) (#1)
by janra on Fri Jan 16, 2004 at 05:32:22 PM PST

$S->_get_story_section(sid) will return the section of the story. There doesn't appear to be anything that returns the tid though, only a linkified image or text for the topic. It doesn't look like it would be hard to change, but you mention this is for a hosting company, so they may not pick up the change in CVS in time for you.

You could probably copy most of the _get_story_section functionality in a box, substituting section with tid, and store it in $S->{STORIES}->{$sid}->{tid} so it's cached the way story titles and sections are.

--
Discuss the art and craft of writing




Getting parameters in 'story_summary' | 6 comments (6 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search