Static Section Pages
The Static Section Page (Static Section) feature allows mapping of html pages to sections. These html pages may be placed/stored in any directory within the site root of your siteseed installation. The only exception are siteseed system directories (e.g. bo).
 |
Figure 1: The extended "Technical Staff" menu. |
If you enter the Back Office of your Siteseed installation as a technician, you will notice that the "Sections"-Box has been extended by an additional option called "Edit Structure". And the option "Edit" has been renamed to "Edit Sections". Please see figure 1.
- Edit Sections
Press this link to access the sections editor. The sections editor got a slightly altered design and two new features related to static sections and the site library (Sitelib). See "Edit Sections" for more details.
- Edit Structure
Press this link to access the structure editor. The structure editor allows to create static section pages. Please see "Edit Structure" for more details.
If you are only able to see the "Edit" option in your "Sections"-Box, please update to a current version of Siteseed. Don't forget to run setup.php to also update the table structure of your Siteseed installation.
Edit Sections
The section editor works like you have been used to. If you choose to "Modify" a section, you will notice that the old design has been modified slightly and two new features have been added. See figure 2 for an overview.
 |
| Figure 2: Section Editor in "Modify" mode. |
- Back
Return to browse mode of section editor. Changes are will not be stored
- Name
Name of current section to be modified.
- Redirect to URL
Allows to define a URL (must start with http://) as redirect target. If a section with redirect URL is called, an http header with this target is sent to the client. Useful for redirections to external (non Siteseed) URL. Leave blank for no action.
- Visible in Sitelib
Allows to set section visible or invisible for Sitelib. This allows adding sections conveniently to menus generated by Sitelib functions. Be careful, a section set to invisible can still be accessed directly by URL.
- Static Section Path
Displays the path of the static section file defined, if available.
- Interface
Allows to define the interface of the current section.
- Content by default
Nothing, page object, article, and search engine are the options you are able to choose from.
- ID
Used to define page object, article, and search engine by id. See Content by default.
- Comments
Enable or disable the comment feature for the selected section.
- Comment's Layout
Used to define comments layout by id. See Comments.
- Modify
Press "Modify" button to store changes and return to browse mode of section editor.
Edit Structure
Click "Edit Structure" to enter the structure editor. The default mode of the structure editor is browse mode. See figure 3 for getting an impression of the editor in browse mode.
 |
| Figure 3: The section editor. (Browse Mode) |
- Mode Selection
The mode of the structure editor can be changed easily by clicking on the mode icons located on the upper right.
 |
Browser Mode Allows to browse the directory tree and to create and delete directories and static sections |
 |
Static Section List Lists all static section files and provides additional information about them |
 |
Rebuild Static Sections Allows to rebuild (rewrite) all static section files depending on your current config.php and the information stored in your database. |
- Current Location
Shows the current browser location.
- Refresh
Press this button to refresh the browser.
- Select
Icons in that column indicate the type of the listed documents of the current directory. Some of them can be used to select files and directories in order to perform operations. This done by a simple mouse click.
 |
Non System Directories Non system (Siteseed) directories can be selected |
 |
Static Section Files Static section files can be selected, too. |
 |
System Directory System (Siteseed) directories cannot be selected. |
 |
Other Files Non section files cannot be selected. |
- Document
File or directory names. If you click on a document name, the document will be opened for viewing in your browser.
- Operations Menu
Lists operations you are currently able to execute. Availability of operations depends on current context and selected document type.
Creating a file for section mapping
Select the operation "New Section Page" and Siteseed will show you the form depicted in figure 4. First you need to enter a file name including extension. Be careful, the extension needs to be a valid PHP extension. Otherwise the PHP code that implements the mapping functionality would not be executed but output as simple text. People would probably wonder about that ;-) Note there is no file extension default, you need to provide the extension manually. Of course, if your Apache/PHP installation does also parse HTML files with PHP, you are allowed to use the extension '.html', too. In case you don't know what extension to use take '.php', this should always work.
 |
Figure 4: The "New Section Page" dialog |
Next select an available section using the drop down menu. See figure 5. You are only able to select sections that have not already been used for creating other mapping files. Press 'Submit' to create the new section page. Internally the section ID and the path to the section page are stored. This allows to create menus with static URLs automatically. See Sitelib documentation for more details regarding menu generation.
 |
Figure 5: Selecting an available section |
After pressing the submit button the new section file should appear in the document listing like in figure 6.
 |
Figure 6: Selecting an available section |
Of course after creating section files you are able to edit them, see figure 7. The edit dialog appears after creating a section file or after clicking on the select icon of a section file and selecting 'Edit' from the operations menu, see figure 8. However, right now it is not possible to rename files. Once you have created them you are only able to change the section mapping property. If you need to rename files, you have to delete them and then create them again using the new name.
 |
Figure 7: Editing Section Files |
 |
Figure 8: Available operations for section files |
If you want to delete a section file, select it by clicking on its select icon. Select operation 'Delete', see figure 8. After that it should be deleted. A status message indicates the operation result (like after all executed operations), see figure 9.
 |
Figure 9: Status message after deleting a section file |
Static Structure Overview
This view provides a quick overview of all created static section files, see figure 10.
 |
| Figure 10: Overview of all static section files |
- Select
Allows to select a static section file
- Path
Paths of static section files
- ID
Section ID
- Section Name
Section name
- Visible
Visibility of section, see 'Edit Sections' above.
- Delete
Allows to delete a static section file.
- Sum
Sum of all static section files
Rebuild Static Section Files
This view allows to rebuild all static section files. This may be necessary due to moving your site to a new server or in case you accidentally deleted a section file while working with your ftp client, etc. Figure 11.
 |
| Figure 11: Status message after deleting a section file |
