Jump to main content
URZ Workshop „Creating websites with TUCAL“
TUCAL: Frame definition and creating content
URZ Workshop „Creating websites with TUCAL“ 

TUCAL: Frame definition and creating content

Frame definition

  • The frame for the website is defined in a PHP file called config.inc
  • The following items are defined here:
    • the content menu on the left,
    • settings for multilingualism
    • and elements in the page header, navigation and footer
  • For each associated web page a separate file is created

Exercise 5: Creating a frame definition with TUCAL

Create a frame definition

  • Open the folder public_html/ via WFM
  • First create a new file „config.inc“ with „TU Corp. Design: Rahmen“ (frame)
    Screenshot WFM: Create new file with option 'TU Corp. Design: Rahmen'
  • Pay attention to the correct spelling of the file name!
  • Fill in the form: navigation, menu, author etc.
  • Save when finished

Structure of a content file

  • For each web page associated with the frame definition a .html or .php file is created
  • The beginning of each web page looks like this (handled by the authoring system!)
    • Behind require_once is the corresponding config.inc (frame definition), which can also be in another folder (one content menu = one config.inc!)
    • Function seite() – passing the name of the file to be displayed
      • normally __FILE__ (the file itself)
      • or 'filename' (path) for content of another file
<?php
require_once('config.inc');
seite(__FILE__);
?>
<h1>Then follows the content.</h1>

The actual content

  • HTML code (static web pages) without opening/closing tags
  • PHP Code (dynamic web pages)
    • Do not overwrite set variables of config.inc
    • Access global variables from URL or forms via $_REQUEST['variablename'], not $variablename

Notes

  • Use the web-based file manager WFM for creation and editing
  • Creation of content on a local computer and transfer via WFM, SCP, SFTP or network drive is also possible

Exercise 6: Creating content with TUCAL

Create a file for each page of your web site

  • Open the folder public_html/ via WFM
  • Select option „TU Corp. Design: Inhalt“ (content page) when creating the file
    Screenshot WFM: create new file with option 'TU Corp. Design: Inhalt'
  • Create the desired content in the HTML editor, the handling is mostly the same as with a familiar word processor
  • Save when finished
  • You can use the WFM to view the file in the web view Icon with web site or open it again for editing Icon with paper and pen