Crc Crc wrote:
> I agree with Torben as it seems better if the customers have separate
> Midgard databases. But is it possible to use one Midgard server with more
> than one database in one connection? E.g., I want to share styles between a
> 'main' host and many 'sub' hosts, which are different companies with
> different content, but may 'buy' from us the style, snippets, and other
> technical details.
You can use multiple databases, and you can have the admin site (or
whatever) in a 'shared' database. It does come with some limitations:
1. Strict separation. Page creation (page/style/element records)
come from the shared database, content (anything fetched by the page
code during page execution) comes from the client database. You can
thus not use elements from both the shared and the client database.
2. Since the connection switches over to the client database just
before page execution starts, you can no longer get info on the
current page ($midgard->page is available but meaningless since it's
in another database).
Asgard is currently not compatible with multidb. The old admin site is
with minor adjustments. I don't know about nadmin, but my guess is it
won't work without major changes.
> I assume that the admin site can be shared between the hosts even if they
> are in separate databases. Or I have to copy to each one?
It can be shared, and has the added benefit that the client sees only
their own site content (page/user/article/whatever records), and not
those of the shared site, as you have with SG0 sites.
> And my other question: I want to convert an existing site; how can I put it
> into the database? Is there a script for this, or I have to write it for
> myself?
I know of none.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]