[ic] strange component error

Caleb Phillips interchange-users@icdevgroup.org
Thu Dec 5 14:28:01 2002


On Sat, 2002-11-30 at 09:03, J P wrote:
> I'm running into some weirdness with the components on
> various pages.  
> 
> First question, I have interchange itself installed at
> /usr/local/interchange and the catalogs at
> /var/interchange/catalogs.  Where should I be editing
> the templates, just to make sure.

/var/interchange/catalogs/<catalog_name>/templates/components/
or
/var/interchange/catalogs/<catalog_name>/templates/foundation/regions/

is probably where you want to be...

> Second question, if I change the components in the
> LEFTRIGHT template, does that mess up everything else,
> ie if I delete one, add one, etc?

Probably. The two places the component-like tags exist are related. I
would even go so far as to say that they are vaguely dependent on each
other.

> Third question, if I have five components in the
> LEFTRIGHT template, should I only have those same five
> listed in the various page templates such as index and
> browse and results?  Or can I have more or less than
> 5?

This is something that I only had to play with recently. And I didn't
find any documentation or mailing-list threads to speak of concerning
it...so I sort of felt through it myself.  I do not claim to completely
understand it, but I have enough of an idea to get by...

in the region file(i.e. LEFTRIGHT) you say where you want things to
be...so you include a component.  However, in the actual implementing
page you must agree that that thing...goes there. This allows you to
have the region file suggest a component that a page does not implement.
What you should have, is component tags in your html files that reflect
the inclusions in your region file, with the undesireable components set
to 'none'. I.E. You might not want cart_tiny used on index.html...you
would have [control-set][component]none[/component][/control-set].
Further, it seems the none is optional, it is just more clear (However,
you still need the tags).

Really it is quite an ingenious system once you understand it, but it is
kind of obscure...perhaps this could be more clearly presented in the
faq?

Please excuse mistakes I may have made, this control-set thing is new to
me also.

good luck

-- 
-------------------------------------------
| Caleb Phillips                          |
| The Studio Resource                     |
| IT Specialist                           |
|                                         |
| Handcrafted for you in Ximian Evolution |
-------------------------------------------