[ic] Build pages from smaller parts

Ed LaFrance edl@newmediaems.com
Thu, 09 Nov 2000 08:50:39 -0800

Yes, you can make "pieces" which can be mixed and matched to assemble 
pages.  The [include ..] tag will draw the contents of a file into a page, 
interpolating any IC tags in the file as well, so you could do something like

[if value current_type eq employee]
         [include form_parts/emp_info]

...keep in mind that form elements and page content don't exist in a 
vacuum; you will have to be mindful of setting the correct form actions, 
target pages, etc, and will have to give some thought as to how to handle 
field validation, taking into account all possible combinations.

- Ed L.

At 03:49 PM 11/9/00 +0100, you wrote:
>How do I build a page from smaller parts. Can I do that at all?
>Example: I'd like to make a page for entering customer data. A customer
>can either be a private person or a company - the data entry page will
>differ depending on this. But the building blocks are all alike; here's
>sketch of the private customer page:
>customer date (customer number)
>private data (first and last name)
>address (streetname etc)
>more customer data (terms)
>Now, I'd like to have an address page that is just embeddable into
>another page. It can be used for other purposes as well, employee pages
>Maybe the include tag can be used?
>But one complication is that there are small and maybe larger
>variations. In the last category is the company customer page. It is
>similar to the private customer page, except of course that instead of
>private data there are company data (name, attention person). But there
>can also be more than one address - ideally an invoicing address,
>several delivery addresses (not a fixed number of addresses) and maybe
>I'd like to hear if there are some tricks that others have discovered
>here, or if there's only the straight forward way to go.
>Interchange-users mailing list

New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          edl@newmediaems.com
Placerville, CA  95667         http://www.newmediaems.com
(530) 622-9421                 (866) 519-4680 Toll-Free