[ic] Basic template help

Caleb Phillips interchange-users@icdevgroup.org
Mon Aug 5 11:56:00 2002


On Mon, 2002-08-05 at 07:32, Cliff Addy wrote:
> We've installed interchange on one of our client's accounts and everything
> seems to work fine.  We can access the store and add items, etc.
> 
> What I can't figure out is how to change the "look" of the store.  The
> docs talk about "top", "left", and "bottom" and setting index.html to
> include them.  But it doesn't change the store except the contents of the
> main frame.

table not frame

> 

I am just starting to play with IC, and your post inspired me to get
done what I had to do next...I was able to figure most of this out, by
catting around in a about 5 minutes. I dont intend to be condescending,
but maybe you should work a little harder before you post.

Line #103 of catalog.cfg, starts a section that defines a directory that
contains the configuration(read: template) of your site. That directory,
is by default found under(aptly named) ./templates, and by default is a
symlink named default to the directory containing the desired
configuration(foundation in my case).


> How do LEFTONLY_TOP, UI_CONTENT, and LEFTONLY_BOTTOM enter into the
> picture?

In the templates directory are the files leftonly, leftright, noleft;
which appear to be definitions of organizations.  If you open them up
and read the description line, you will find it most useful.

Under /templates/default/ there is a file called theme.cfg which is a
massive parsed style sheet, containing many worthwhile fields.

Under /templates/default/regions are the actual top and bottom includes
files for each of our defined organization types. This is where the
actual HTML resides.
> 
> Help, I'm completely lost as to how this fits together.
> 
Think of it this way: Every page includes 3 files: the top include which
contains the 'header' table which has logos and such, the 'navigation'
or left table, and the table declaration for the main table; the main
include which shouldn't have to care about tables, just the unique and
hopefully interesting content; and finally the bottom include, which
will close up the main table, contain the right section if desired, and
close up anything else that might be flopping about.

> Cliff
> 

Hope that helps you out.  You will find that this sort of 3 includes
setup is becoming very common in sites designed with
North/South/East/West table mentality.  Good luck.

> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
-- 
-------------------------------------------
| Caleb Phillips                          |
| The Studio Resource                     |
| IT Specialist                           |
|                                         |
| Handcrafted for you in Ximian Evolution |
-------------------------------------------