Personal tools
You are here: Home Leocornus leocornus.tracclient Define the WordPress page templates and URL

Define the WordPress page templates and URL

We will use WordPress page templages as the main representation layer for Trac on WordPress.

Templates

The fillowing page templates will be provided with the plugin as examples.

  • page-tickets-list.php
  • page-ticket-edit.php
  • page-ticket-view.php

Each template could be copied or symlinked to current theme folder, so end user could see those templates in the page templates dropdown list.

Template Layout

Wordpress Page template is similar to index.php. It will have the following layout:

+---------------------------------+
|get_header() - header.php        |
+---------------------------------+
|              |                  |
|              |                  |
|get_sidebar() |                  |
|sidebar.php   | index.php        |
|              |                  |
|              |                  |
+---------------------------------+
|get_footer() - footer.php        |
+---------------------------------+

URLs

The following URLs will be used to view and manipulate tickets on Trac.

  • /trac
  • /trac/ticket?id=123, this url tells the page ticket has parent page trac.
Document Actions