On Jul 23, 2008, at 12:21 PM, Will Scheidegger wrote:
On 23.07.2008, at 12:05, Grégory Joseph wrote:
Yeah, that is a similar approach we've taken for the new cache
configuration - you can have multiple cache configs, and the cache
filter is configured to use the appropriate one.
Ah, interesting. I'll have a look at how you've done things there.
But you'll have to think about handling of duplicates etc. What if
the *same person* wants to register on siteX and siteY, how do you
handle that ? (because as it, it will just be rejected, saying this
user already exists, while what you want is probably add some roles
or groups to it)
Well, if the sites are related (and therefore user accounts should
be "shared") then one could really solve this via roles/groups (e.g.
the "Apple ID" which might be valid for bugreport.apple.com as well
as for the Apple Store or .Mac). If the sites are not related at all
I don't see a problem in showing a
"username already taken" error message.
Frustrating if its the actual same person.
Also: defaultBaseUrl is what it says it is - if you add this in
public-user-registration config it, you'll have to rename it. But
at that point, you'll probably want different emails anyway, so you
could just as well hardcode it in the email.
Right, but you would at least want to specify different mail
templates depending on the site and language.
Well you configure the mail templates in the strategies, and if you're
using freemarker, you can stuff the language in the template name, ie
mail.html, mail_fr.html, mail_de.html and so on. (this is a built in
freemarker feature btw, we just pass it the correct locale)
-g
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------