Results 1 to 2 of 2

Thread: Create Template

  1. #1
    Join Date
    Nov 2010
    Posts
    13

    Default Create Template

    What are the requirements for creating a template? I am very versed in HTML and CSS, but do not know if there are any special requirements for creating a OR template.

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default Re: Create Template

    If you know HTML/CSS you are going to catch on quickly, all of OR's template files are XHTML and CSS. OR's specific template tags are simple to use for placing dynamic content.

    Examine the file 'main.html' and 'style_main.css' that exist in your /template/lazuli folder.

    Create your own custom template folder /template/mytemplate and copy the 'main.html' template file and the 'style_main.css' CSS file from the lazuli template folder to your new folder. Switch to your new template in Site Config, and make any changes to those 2 files. in 'main.html' keep everything intact above <body> and below </body> unless you are going to include a different css file or make other adjustments.

    That will cover most of the look and feel, if you want to customize other specific pages within the site, those template files are located in /template/default simply copy the template file (like maintenance_mode.html) you want to customize to your custom template folder and make your changes to the copy. OR otherwise falls-back to use template files in the default template folder if they do not exist in your custom template folder. The same with CSS.

    Template Docs:
    http://open-realty.org/docs/release/...68388900719583
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

Similar Threads

  1. Create own template tags?
    By kadata in forum Installation/Configuration Help (CLOSED)
    Replies: 2
    Last Post: 03-07-2009, 01:17 PM
  2. If I create a field can I use it in a template tag
    By April_Floyd in forum General Help (CLOSED)
    Replies: 3
    Last Post: 07-25-2007, 06:35 PM
  3. Need someone to create an Auto Template
    By taviles in forum Work
    Replies: 1
    Last Post: 02-11-2007, 02:22 PM
  4. How to create a template
    By Ian Perera in forum Templates - Help/Ideas/Discussion (CLOSED)
    Replies: 4
    Last Post: 11-30-2006, 12:30 PM
  5. How to create a new template for addon?
    By erenger in forum Addon help, ideas and discussion (CLOSED)
    Replies: 2
    Last Post: 09-09-2005, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •