Jump to main content
URZ Workshop „Creating websites with TUCAL“
TUCAL: Creating content

TUCAL: Creating content

Structure of a content file:

<?php
require_once('config.inc');
seite(__FILE__);
?>
<h1>Then follows the content.</h1>

Start of each web page (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

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
Open exercise