List Info

Thread: Share utility template across sites




Share utility template across sites
user name
2006-10-11 21:51:19
 

-----Original Message-----
From: David E. Wheeler [mailto:davidkineticode.com] 
Sent: Wednesday, October 11, 2006 11:19 AM
To: userslists.bricolage.cc
Subject: Re: Share utility template across sites

On Oct 11, 2006, at 08:46, Chris Heiland wrote:

> In theory I should be able to access
> anything in the Library from any site in the system. 
However, when I 
> use the template I get a 'template is not found' error.
 What should I 
> be looking for to make this work?

You just need to make sure that the Library OC is included
in *every* other
OC. OC includes do not cascade. So if HTML includes Library,
and Email
includes HTML, Email does not also include Library unless
you add it. Think
of it as a PATH environment variable, not as inheritance.

Best,

David


Exactly.  Maybe I should diagram:

Site A
Mason (A)
Web (A)

Site B
Mason (B)
Web (B)

Main Site
Mason
Web
Library

In Mason(A) and Web (A) the Library OC is included in both
channels.  The
exact same scenario is there under Site B, both Mason (B)
and Web (B) include
Library.  The utility template exists in the Main Site
Library Output channel
but I am trying to access it from Site A and Site B.  Should
work?

Chris
Share utility template across sites
user name
2006-10-11 21:58:47
On Oct 11, 2006, at 14:51, Chris Heiland wrote:

> Site A
> Mason (A)
> Web (A)
>
> Site B
> Mason (B)
> Web (B)
>
> Main Site
> Mason
> Web
> Library
>
> In Mason(A) and Web (A) the Library OC is included in
both  
> channels.  The
> exact same scenario is there under Site B, both Mason
(B) and Web  
> (B) include
> Library.  The utility template exists in the Main Site
Library  
> Output channel
> but I am trying to access it from Site A and Site B. 
Should work?

Yes, assuming that the templates you're trying to use really
are in  
the Library output channel. I've had problems in the past
where  
utility templates were put into a /util/ subcategory, but
not in the  
Library output channel.

Best,

David
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )