[ic] Multiple product layout on flypage.html
Kevin Walsh
kevin at cursor.biz
Mon Apr 25 10:00:37 EDT 2005
Andre Bunting [andreb at techess.com] wrote:
> I was wondering .. in my case I have clocks and watches..
> now on the flypage.html.. I was wondering if I can have an if statement to
> tell the flypage which layout to show, either the layout for clocks or
> the layout for watches..
>
> [snip: example code]
>
> Is the approve possible ? if so how to do it.. secondly .. what would I
> have to do so that in the admin section I would have two sets of input
> screens.. one for clocks.. others for watches ?
>
You could code two completely different layouts into one flypage.html
but what would happen, in the future, when you decide that you want
three types of layout (perhaps a new one for grandfather clocks)? The
code could become very difficult to maintain after a while.
A cleaner solution be to use a different flypage for each product type.
See the "PageSelectField" configuration directive:
http://www.interchange.rtfm.info/docs/rtfm_icconfig.html
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list