Re: Different section looks

Joe Stewart <[email protected]> Fri, 5 Dec 2003 11:08:22 -0600
Newsgroups gmane.comp.cms.phpslash.user
Message-ID <[email protected]>
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.

> 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.

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
> [email protected]
> 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/