Creating "Pages"
Earlier in the how it works area we covered the three major types of blocks in Odin Assemble; Pages, Templates and Elements. To create a new page in your new Odin Assemble based web-site you'll need to first accomplish the one time task of uploading your default template. You can upload more templates at this time as well or choose to add them at a later time. As long as you upload the minimum one template you are halfway finished creating your first new page on your Odin Assemble based web-site.
Uploading your default Template
Upload your desired default template to /templates named index.html. If you'd like to upload a default error handling template you may also upload a error.html file.
Simplicity is key to Odin Assemble's fast learning curve. When creating your Odin Assemble templates you only need to remember one template tag:
Place the where you'd like your "content" to appear in the template. You can also use:
to display the page runtime or assembly time in seconds. As well as:
displays the last modified time.
If you've configured Odin Assemble to generate your meta data then you'll have two additional template tags:
All templates must end in .html.
Uploading your default Page (or multiple Pages)
The reasoning for naming an Odin Assemble Block Type "Page" may seem confusing at first, but as you begin to work with Odin Assemble the justification becomes more clear.
Create a second HTML document containing only the "content" of portion of your home page. Then upload it to your /pages directory. You can upload as many content "pages" as you like at this time.
Remember: The basic Odin Assemble concept is Template + Page ( + Elements ) = Web Page
All pages must end in .html.
Test Your Set-up
First select a filename from the group uploaded into /pages, then using your browser try to open up:
- http://www.yourdomain.com/selected-filename-from-upload.html
Remember: To replace www.yourdomain.com with your valid web server hostname, and selected-filename-from-upload.html with a filename you actually uploaded to /pages.
If everything is configured correctly you should have see a properly rendered page by Odin Assemble. If you have configured Odin Assemble to generate meta-data then feel free to review your source code to see the results of the automated processes. At this point you'll most likely be interested in learning about reserved/special case templates or how to introduce "Elements" into your system.
Navigation
Sub-Navigation
- How It Works
- Installation
- Creating "Pages"
- Reserved/Special Case Templates
- Authoring New Elements
- Introducing New Elements
- Web-based Site Editing
- Maintenance
