Creating and Editing the Content

Databases

The website consists of the following 8 databases:

1. Texts
2. Response Receivers
3. Users
4. Courses and Assignments
5. Messages
6. Files
7. Statistics
8. Backup

The databases can be reached by clicking on the button DB.

Texts

The first of the databases is called Texts and contains the main ingredients of the website. To access this database you first need to click on the button DB and then on the link Texts. Some texts are system texts that must have the correct structure for website to function properly. Other texts contain the content that is displayed for the users. The parameter page in the URL selects the text to be displayed. So if we send the browser to https://yourwebsite.com/index.cgi?page=planets, the user will see the text with the name planets.

Exercise 1. Modify the document planets in the database Texts.

Exercise 2. Create a new document stars in the database Texts.

Placing links in the top menu

Go to database Texts and open the document called mainTextHeader. You will see a weird scene: the header will be placed in the body of the website. This means that the header is placed in the main display window. As a consequence, it is now subject to the button edit. You should click on the button edit. Then you need to find the HTML code that corresponds to the link to the document Planets. This is how it looks:

      <li class="nav-item">
        <a class="nav-link" href="index.cgi?page=planets">Planets</a>
      </li> 
You can copy these tree lines and paste them immediately after their original occurrence. In the second copy you should make the following two changes:

  • Replace ?page=planets with ?page=stars \(\quad\) and
  • Replace the title of the link Planets to Stars or some other label that you wish to use.

Remark: Once you click on Submit the change will not be visible immediately. The header will refresh the next time you click on any of the links. This "lag" will always happen when header or footer is edited. The submission to the database occurs only after website header is generated so you will see the old header for the one last time before the changes take effect.