[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.
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.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]