Re: Applying templates to stories/sections
Joe Stewart <[email protected]> Mon, 5 Jul 2004 08:29:30 -0500
| Newsgroups | gmane.comp.cms.phpslash.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 04, 2004 at 10:46:17PM +0100, Peter Cruickshank wrote: > Hi Joe/anyone > > Still playing with phpslash 0.8 alpha.... my next question: > > What I want to do is use different versions of storyIndex.tpl depending on > what section is being displayed (possibly through adding options to > sections?) > > I also want to be able to specify a non-default template for a story. > story option "tpl" will change the template for that one story. You have to set story_optioncount to at least one to have a blank option field. > I've been looking at the code (Story::getStory and Story::getStories) and > there seems to be a way to say that a section should use a particular > template. In fact it seems that there may be several ways.... so: > It is getting where timtowtdi for things. > Is there a way from the user interface to specify what template should be > used? If not, where would be the best place to add this ability? I also > want to be able to control what version of story.tpl is used to populate > the content of storyIndex.tpl. > For the alternate storyIndex.tpl, you'll probably have to explicitly change the module block to have options like: module = Story tpl = alternate Setting the module could have other ramifications. Will this work for you? Joe > Thanks > > Peter > -- > Peter Cruickshank > peter cruickshank biz > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > phpslash-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/phpslash-users ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com