Forum OpenACS Development: Re: Customizations

Collapse
4: Re: Customizations (response to 1)
Posted by Dave Bauer on
Nima. I like the per subsite customization. That works for me.

I think your idea is much simpler and will work well. ie: page-name-subsite.tcl could be the default. Any reason to not use the URL of the subsite and forget using parameters?

I can see turning OFF this feature to speed up the request processor, but I don't think it makes sense to bother making the suffix configurable.

You'd need access to the filesystem to create the custom file and there's little chance someone will create a file that matches the pattern accidentally.

Collapse
5: Re: Customizations (response to 4)
Posted by Malte Sussdorff on
How about using the subsite_id instead? This is not going to change for your custom site, even if you rename your subsite. I would just have one additional keyword like "custom" which is applicable to all pages regardless of subsite.

Having an "off" switch will most certainly help. Caching does not make any sense in my opinion. But to speed things up I would use a delimiter not commonly used in URLs, like "index+custom.tcl", so the RP can very quickly check if there is a file that matches this pattern in the file system (if we were to use "-" this will bring issues with index-2 and so on and so forth)

Collapse
9: Re: Customizations (response to 5)
Posted by Emmanuelle Raffenne on
Hi,

I don't like using subsite_id since it will be different in each installation, by installation I'm thinking about development and production servers of the same site.