Kassetra Stevenson wrote:
> Ok, after attempting all weekend to make my company's current website
> into a midgard website, I have failed. Here is what I have done, and
> the questions I have had along the way, and if someone could give me
> some more hints to get this working, I'd be very grateful.
>
> 1. Ok, so I created a new sitegroup for my company -- which also created
> a root page and a root style for me to work with.
>
> 2. I tried to create a new host for the new sitegroup, but it won't let
> me, any new host I created attached itself to SG0. How does my new
> hostname know to go to the new sitegroup, if it belongs to SG0...? I'm
> not understanding hosts very well, I guess.
It's not a hosts matter, perso. Any resource is created in the sitegroup
that you are currently logged into. If you log in as admin to the admin
site, you're in SG0, with full ('root') permissions. What you'll want
to do after creating the sitegroup is log in as 'admin*sitegroupname';
this will give you root rights in 'sitegroupname'. You can then create
your host record, and you'll also want to create the admingroup for the
sitegroup at this point, and one or more users in this admingroup. After
this, you don't need to be root anymore so you can login now as one of
the new admingroup users. These admin users can also create new users
in your sitegroup. I'll assume for the rest of the reply that you are
no longer logged in with root permissions but have logged in as a
sitegroup admin.
> 3. Ok, so now I go to create my code_global & code_init so that I can
> have global image variables.... but they're actually the Asgard
> ones...? Well, ok, I'll leave them alone.
New resources you create now will be part of your own rsitegroup, so you
are free to create these elements now. Not that the default setup of
Midgard uses code-global and code-init, not code_global and code_init.
> 4. So now I try to go in and make my root page... but there are already
> elements for the Asgard site. What happens if I want the my company's
> logo...? So now I'm totally lost.
The elements you see are in SG0, and are visible for all users of all
sitegroups. Asgard should have assigned a new (nearly empty) style to
your new rootpage, and you can fill this with whatever elements you
need.
> Isn't creating a new sitegroup like creating a new virtual website? Do
Yes.
> I make everything under the SG0....?
No.
> I'm quite frustrated with not
> being able to convert my company's website over smoothly. I'm not
> understanding the difference between a root page and a root style (they
> look like they do the same job to me right now, according to the
> descriptions I have read in the manual, and examples I have seen.);
When a midgard request is being made, mod_midgard resolves the URI to a
page record. The style attached to this page is then used to assemble
the PHP program to execute; the page content is generally part of the
executed content but doesn't have to be. So the page path is a pointer
to the style to use, but styles can be assigned to multiple pages.
> Do I not create a new Sitegroup for every *individual* company that I
> design websites for...?
That's what I'd recommend.
> Can I make different code_init and code_globals for different
> Sitegroups?
You can make different code-init and code-globals for individual pages
and styles, so you can have many of these withing one sitegroup. The
crux of the matter is in logging into the newly created sitegroup as an
sitegroup admin as soon as the basics of the sitegroup have been set up.
> Can I make it so that different Sitegroups Root Page and Root Styles
> have *different* elements than SG0... or do I have to just dump
> everything into SG0 and hope that I named everything differently...?
Nope, stuff in different sitegroups behaves as though they're in
separate databases; names won't clash.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]