Forum OpenACS Q&A: Subsites

Collapse
Posted by Iuri Sampaio on
I created a subsite, and i'd like to know where the subsite is located on my server.
I'm trying to find a folder or file that show me on the browser the respective subsite
Collapse
2: Re: Subsites (response to 1)
Posted by Iuri Sampaio on
for example:
http://www.myybiz.net is the main site

http://www.myybiz.net/countries is the subsite
but i don't find a folder for that. And the reason i'm lookinng for is because i want to build a personalized layout for that specific subsite

Collapse
3: Re: Re: Subsites (response to 2)
Posted by Rainer Hahnekamp on
I think you are confusing an oacs subsite with a physical folder in your file system. As far as I know you cannot have an own "package-directory" for each subsite. You can just mount packages in it and have some administrative possibilities which are only valid to these packages.
If you want personalized layout you should create a master template file that looks from what package and subsite it is called and then applies the appropriate css-file,...

https://openacs.org/doc/acs-subsite/
https://openacs.org/api-doc/package-view?version_id=358370

Collapse
4: Re: Subsites (response to 1)
Posted by Ben Koot on
OACS give an option to each problem, but trying to find your barings can be confusing. I Have been fighting with this issue for the last 4 years, and created a blog section devoted to this topic. Feel free to join the party .

Cheers

Ben.

Collapse
5: Re: Re: Subsites (response to 4)
Posted by Iuri Sampaio on
Ok, but what happen if...

On the top I have a subsite and I create several diferents subsites bellow to the top one and I want on each one the packages news, calendar... whatever. Which it would be just a matter of install the pkgs on each subsite.

But then, some of these packages such as news, calendars, edit-this-page, webbloger. i want to show on the first page of each subsite. Can i do that on the master page of each subsite?

Collapse
6: Re: Re: Re: Subsites (response to 5)
Posted by Iuri Sampaio on
and how?? if there isn't none directory or even page related to trhat subsite on the filesystem.
Collapse
7: Re: Re: Re: Re: Subsites (response to 6)
Posted by Claudio Pasolini on
Create a directory under /var/lib/aolserver/$service_name/www with the same name of the subsite and then create there the files that you want to serve.
Collapse
Posted by Iuri Sampaio on
But then, i still have the information of the top subiste and the new subsite bellow.

http://www.myybiz.net:8090/projects/businesslabs/etp

So it's still calling the aplication's instances (news, weblogger, edit-this-package) from the main site.

Collapse
Posted by Iuri Sampaio on
What should i do to have new empty instances of the packages for each subsite?

and i want to include this instances on the first page of each subsite

Collapse
Posted by David Lee on
Hi. I went to your website and it's amazing! I registered to browse around and see how your site is managed. Can I look at the template you made to change your site from the beginning openACS look? I've been trying to figure that out and I just need an example to get started.
Collapse
Posted by Iuri Sampaio on
Thanks man,I really apreciate you comment that's what keeps me motivated. But you know, i'm pretty far where i want and need to be.

Hey Claudio....
take a look on the info above and see if you have a solution for this problem. I also posted right bellow!!

**************
Create a directory under /var/lib/aolserver/$service_name/www with the same name of the subsite and then create there the files that you want to serve.
*************************

But then, i still have the information of the top subiste and the new subsite bellow.

http://www.myybiz.net:8090/projects/businesslabs/etp

So it's still calling the aplication's instances (news, weblogger, edit-this-package) from the main site.

What should i do to have new empty instances of the packages for each subsite?

and i want to include this instances on the first page of each subsite

**********************

Collapse
12: Re: Subsites (response to 1)
Posted by Dave Bauer on
Try visiting

mysite.com/subsitename/admin/

This should give you the administration page for that subsite. Click on Applications and you can install applications under that subsite.

Choose parameters to set the default template for that subsite.

The OpenACS request processor checks a database table called site_nodes to map a URL to a package directory and file.

You can learn more about the request processor if you are interested: https://openacs.org/doc/openacs-5-2/rp-design.html

Collapse
13: Re: Re: Subsites (response to 12)
Posted by Iuri Sampaio on
Thanks Dave,
it will help me a lot to clarify some concepts of oacs.

can you take a look and see if this is exactly where i've been stuck?

http://www.myybiz.net:8090/projects/businesslabs/

Collapse
14: Re: Re: Re: Subsites (response to 3)
Posted by Sam Nicholson on
I just posted this:

http://www.openacs.org/forums/message-view?message_id=398558

AFAICT, there is no doc to this effect, but one *can* have a dir for a subsite, it just can't interfere with a mounted package name.

Cheers!