Re: [phpslash-users] Different section looks
Brought to you by:
joestewart,
nhruby
From: Matthew L. <lei...@ma...> - 2003-12-05 17:40:37
|
On Dec 5, 2003, at 12:08 PM, Joe Stewart wrote: > On Fri, Dec 05, 2003 at 10:49:03AM -0600, Joshua A Udall wrote: >> >> I like the way phpslash works and I'm comfortable with the more or >> less >> default install (http://plantbreeding.org) but I'd like to be able to >> post >> stories into different sections and give them a different look. For >> example, I want to make an event calendar section. The "story" would >> need >> a start date and end date. In the calendar view, one would see all >> the >> events sorted by start date. The story box would only include dates, >> Title >> (linked to a conference website or whatever), and location. Just a >> simple >> list with the list of events. >> > > Sort of ditracted right now. Maybe someone else will chime in. Chiming away...I also have little time, but it's a good question. >> To do this, my thoughts are as follows: >> >> simply add the additional fields to the story table and modify the >> "submit >> story" and "edit_story" accordingly. (perhaps best would be a edit >> calender >> link and not mess with the functioning story forms). >> > > extending to create a calendar module might be best. Yeah, I agree. But is "event" an extension of the story class or are they both extensions of another class? I keep threatening to add my file-publishing module for binary downloads, and I got to thinking about the same thing. Articles, events, files, these are all subclasses of a "resource" --something that can be accessed by URL. Maybe in DB terms there isn't much of a difference in perspective. But we might save some code by abstracting story_base and extending for other resources. This is probably for the development list... > If you just need a few more fields for all stories, you can use the > story_default_options mechanism. > >> create a very simple "fancybox.tpl" how I like it >> > > You should be able to set an alternate story template for any story. > > the option would be: > > tpl tplnamewithnoextension > > Unfortunately in 0.7.2 this only applies to the article view, not the > section index page. This should be fixed in 0.8. > >> How do I have the calendar section use simplebox.tpl while the home >> section >> uses fancybox.tpl? >> > > A few different ways in 0.8 > > in 0.7.2 you might be able to set the template in the index and > article > scripts iff the section_id == calendar_section_id. > >> Any better ways to do it? >> > > Probably, this was just throwing out some ideas. > > > Joe > >> >> Joshua Udall >> Department of Ecology, Evolution, and Organismal Biology >> Iowa State University >> Ames, IA 50011 >> Ph: (515) 294-7098 >> Fax: (515) 294-1337 >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us help >> YOU! Click Here: http://sourceforge.net/donate/ >> _______________________________________________ >> phpslash-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/phpslash-users > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > phpslash-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpslash-users |