Forum OpenACS Q&A: How does the home page work?

Collapse
Posted by David Lee on
Right now I have no index.adp/index.tcl. I'm wondering what is the file that loads the default home page for openACS (right after installation). I was looking through blank-master.adp and saw it required a variable @header_stuff. However, looking through blank-master.tcl, default-master.tcl, and site-master.tcl, none of them provided the header_stuff variable. Where is this coming from...?
Collapse
Posted by Pavel Boghita on
you find it at:
/var/lib/aolserver/yourservicename/packages/acs-subsite/www/

index.adp calls < master > that means the default master which is set up in the parameters of your site.
You can nest master into master and so on for ever.... have a look ...

Collapse
Posted by David Lee on
I still don't see where the variable @header_stuff is coming from though...I looked in index.tcl and it's not there either.
Collapse
Posted by Dave Bauer on
Check out this https://openacs.org/wiki/Modifying%20the%20look%20of%20your%20site

on how the master templates pass properties and the association of the templates.

Collapse
Posted by Iuri Sampaio on
Hi David,

I was in the same situation you are now. I was totaly lost because even with the good and long explanations of the guys here in the forum i didn't know how the oacs system worked and how the pages were built in a big piece html code that we see on the browser.

How did i find it out?
I found that out just going on each page and understanding what each page does. Take your time, you will have the pages on your mind very soon, just need to pratice and read them. Remember always to read both together adpXtcl
The site-master page is the first one you should look.

Another good tricks you can do:

Always when you are in a page, go to the browser and click on view source code, sometimes we can trace where you are from there

If are the site-wide-admin, in the bottom of the page, always appear a square called profile information. This square show you the pages those have been called to show up on the browser, it's not all the page but most of them.

Every time you don't know what a variable really does, just post on the adp page of the tcl page the variable is related to. On the adp file you write down @variable-name@ and it will show up the line in the browser.

In this case it would be headerstuff: just put a line @headerstuff@on the adp file and refresh you page to see what is in there.

Let me know if that helps. =)
@header

Collapse
Posted by Stan Kaufman on
Install Developer Support. It is nearly magical in its ability to help you figure out what is going on.
Collapse
Posted by David Lee on
I was having trouble installing Developer Support. Since ACS 5.2 doesn't have a fully loaded repository yet, I have to load it from the CVS. I tried following the instructions in the documentation on installing from the CVS, but I think I must be missing a step. This is what I typed in:

cvs -d:pserver:mailto:anonymous@cvs.openacs.org/cvsroot co -r oacs-5-1 acs-developer-support

It installed a series of things. However, when I went to "Install Software" and "From local repository", the acs-developer-support package wasn't there.

I'm a little confused because I installed things from CVS before and it worked out. I must be forgetting something...does anyone know?

Collapse
Posted by Ryan Gallimore on
I didn't realize the 5.2 repo was not fully loaded. Checking out acs-developer-support should work without a problem. Make sure you are checking it out from the /packages/ directory logged in as your openacs user.

Then you'll want to click on the Install Software link from inside the APM.

My test of a checkout seemed to work ok.

Collapse
Posted by Dave Bauer on
Hmmm The repository shows developer support is available. It is under Install Services not Applications.

https://openacs.org/repository/5-2/ shows it was releaesd on 2/4/2006. That should install in openacs 5.2 from the repository.