El mar, 24-01-2006 a las 22:43 +0100, Andreas Hartmann escribió:
> [EMAIL PROTECTED] wrote:
> 
> > Tell me if I understand.  Using a silly example:
> > Company logo is usually a statis resource.  A "logo" Module can decide
> > which graphic to serve based on the company name:
> > /mypub/logo/companyName
> > (or /mypub/live/assets/logo.gif?lenya.module=logo&name=companyName)
> > 
> > The code should check the module to see if it this is decided
> > dynamically, but defaults to the static resource if nothing is
> > returned?
> > 
> >> If the resource doesn't exist on the file system, it is assumed
> >> that the module generates it dynamically.
> > 
> > I would expect the module to be checked first, because it could
> > dynamically override the static resource.
> 
> I agree, but the problem is that you can't check the module first.
> Once you mount the module sitemap, you can't get out again.
> 

¿Why? 

<map:mount src="module-resources.xmap" pass-through="true"/> 

Do I miss something?

> 
> > The module should also
> > handle the fallback to the static resource, so handling it in the core
> > should be useless.
> 
> That would be possible, but it would require each module to serve its
> static resources on its own. This would at least require mounting a
> core sitemap for that purpose, e.g.:
> 
> global-sitemap.xmap -> modules/foo/sitemap.xmap -> resources.xmap
> 
> Maybe this is the cleaner solution (less automagic), but it requires
> additional code in each module to serve the resources.
> 

With the locationmap not.

salu2

> -- Andreas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to