Making your own Theme: Difference between revisions


mNo edit summary
mNo edit summary
Line 11: Line 11:




'''Required elements are (click selector for more information):'''
'''Required elements are:'''


<table width="950" border="0" cellpadding="2" align="left" bgColor="white">
<table width="950" border="0" cellpadding="2" align="left" bgColor="white">
<!-- Row 1 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<td width="290" align="left" valign="middle" bgcolor="#C0C0C0">
<b>Selector</b>
<b>Selector</b>
</td>
</td>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<td width="100" align="left" valign="middle" bgcolor="#C0C0C0">
<b>Description</b>
<b>Description</b>
</td>
</td>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<b>Example</b>
<b>Example</b>
</td>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<b>More Information</b>
</td>
</td>
</tr>
</tr>


<!-- Row 2 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="290" align="left" valign="middle">
<source lang="html4strict">#site_heading</source>
<source lang="html4strict">#site_heading</source>
</td>
</td>
Line 36: Line 37:
</td>
</td>
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><h1 id="site_heading"></h1></source></td>
<source lang="html4strict"><h1 id="site_heading"></h1></source>
</td>
<td width="316.6666666666667" align="left" valign="middle">
[[Site Heading | Details]]
</td>
</tr>
</tr>


<!-- Row 3 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
Line 49: Line 53:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><h2 id="site_heading"></h2></source></td>
<source lang="html4strict"><h2 id="site_heading"></h2></source></td>
<td width="316.6666666666667" align="left" valign="middle">
[[Site Sub-Heading | Details]]
</td>
</tr>
</tr>


<!-- Row 4 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
Line 61: Line 67:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><div id="location_0" class="location"></div></source></td>
<source lang="html4strict"><div id="location_0" class="location"></div></source></td>
<td width="316.6666666666667" align="left" valign="middle">
[[Content Locations | Details]]
</td>
</tr>
</tr>


<!-- Row 5 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
Line 73: Line 81:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><div id="primary_navigation"></div></source></td>
<source lang="html4strict"><div id="primary_navigation"></div></source></td>
<td width="316.6666666666667" align="left" valign="middle">
[[Primary Navigation | Details]]
</td>
</tr>
</tr>


<!-- Row 6 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
Line 85: Line 95:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><div id="copyright"></div></source></td>
<source lang="html4strict"><div id="copyright"></div></source></td>
<td width="316.6666666666667" align="left" valign="middle">
[[Copyright | Details]]
</td>
</tr>
</tr>
</table>
</table>


<br>
<br>
<br>
<br>
'''Optional elements are (click selector for more information):'''
 
'''Optional elements are:'''


<table width="950" border="0" cellpadding="2" align="left" bgColor="white">
<table width="950" border="0" cellpadding="2" align="left" bgColor="white">
<!-- Row 1 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<td width="290" align="left" valign="middle" bgcolor="#C0C0C0">
<b>Selector</b>
<b>Selector</b>
</td>
</td>
Line 104: Line 116:
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<b>Example</b>
<b>Example</b>
</td>
<td width="316.6666666666667" align="left" valign="middle" bgcolor="#C0C0C0">
<b>More Information</b>
</td>
</td>
</tr>
</tr>


<!-- Row 2 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="290" align="left" valign="middle">
<source lang="html4strict">#page_name</source>
<source lang="html4strict">#page_name</source>
</td>
</td>
Line 117: Line 131:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><div id="page_name"></div></source></td>
<source lang="html4strict"><div id="page_name"></div></source></td>
<td width="316.6666666666667" align="left" valign="middle">
Details
</td>
</tr>
</tr>


<!-- Row 3 -->
<tr>
<tr>
<td width="316.6666666666667" align="left" valign="middle">
<td width="290" align="left" valign="middle">
<source lang="html4strict">#location_N.location</source>
<source lang="html4strict">#location_N.location</source>
</td>
</td>
Line 129: Line 145:
<td width="316.6666666666667" align="left" valign="middle">
<td width="316.6666666666667" align="left" valign="middle">
<source lang="html4strict"><div id="location_1" class="location"></div></source></td>
<source lang="html4strict"><div id="location_1" class="location"></div></source></td>
<td width="316.6666666666667" align="left" valign="middle">
[[Content Locations | Details]]
</td>
</tr>
</tr>
</table>
</table>
Line 134: Line 153:




<br>
* All content areas should be a #location_N.location which will allow content to be added and drag and dropped to/from the area.  
<br>
 
* All content areas should be a #location_N.location which will allow content to be added and drag and dropped to/from the area.
   
* You can create as many of these as you want, just make sure you give them a unique location id (#location_1, #location_2, etc.)
* You can create as many of these as you want, just make sure you give them a unique location id (#location_1, #location_2, etc.)


Line 151: Line 168:
You can use whatever you want to make your website how you want it - the only rule is that these files have to reside inside the 'assets' folder. that's it!  
You can use whatever you want to make your website how you want it - the only rule is that these files have to reside inside the 'assets' folder. that's it!  
        
        
The assets folder will be uploaded as-is to the document root of your website (http://yoursite.viviti.com/assets)  
The assets folder will be uploaded as-is to the document root of your website <nowiki>(http://yoursite.viviti.com/assets)</nowiki>
        
        
Link to them relatively (src='assets/file.jpg') to make it easier for you to work on locally, and we will fix them to be absolute when the theme is uploaded to ensure everything works with nested pages.
Link to them relatively (src='assets/file.jpg') to make it easier for you to work on locally, and we will fix them to be absolute when the theme is uploaded to ensure everything works with nested pages.

Revision as of 14:11, 24 March 2009

This article is intended to help you understand what you can do when creating a theme for Viviti.



Content Replacement Rules

Content replacement is done by using some simple CSS selectors. (http://www.w3.org/TR/REC-CSS2/selector.html)


Required elements are:

Selector

Description

Example

More Information

#site_heading

Content replaced with the site heading

<h1 id="site_heading"></h1>

Details

#site_subheading

Content replaced with the site subheading

<h2 id="site_heading"></h2>

Details

#location_0.location

Content replaced with page components

<div id="location_0" class="location"></div>

Details

#primary_navigation

Content replaced with navigation (UL>LI>A)

<div id="primary_navigation"></div>

Details

#copyright

Content replaced with copyright text

<div id="copyright"></div>

Details



Optional elements are:

Selector

Description

Example

More Information

#page_name

Content replaced with active page name

<div id="page_name"></div>

Details

#location_N.location

Content replaced with components

<div id="location_1" class="location"></div>

Details


  • All content areas should be a #location_N.location which will allow content to be added and drag and dropped to/from the area.
  • You can create as many of these as you want, just make sure you give them a unique location id (#location_1, #location_2, etc.)
  • Any content inside any of these elements will be replaced, so feel free to put placeholder content in to assist you in designing your theme!


Other Notes

Assets - Images, CSS, Flash, Javascript, etc.

You can use whatever you want to make your website how you want it - the only rule is that these files have to reside inside the 'assets' folder. that's it!

The assets folder will be uploaded as-is to the document root of your website (http://yoursite.viviti.com/assets)

Link to them relatively (src='assets/file.jpg') to make it easier for you to work on locally, and we will fix them to be absolute when the theme is uploaded to ensure everything works with nested pages.

Base Stylesheet

A 'base' stylesheet will be always be included which contains some basic CSS declarations for some very basic styling of various elements (form elements with errors, various component-specific stuff, etc.).


This will always be inserted before your stylesheets to ensure you can override anything you need.

You can view it at: http://blog.viviti.com/stylesheets/base.css


Titles and Headings

When titles and headings are inserted they will be wrapped in a span. The span will not appear if there is not title set, which allows you to style things differently if text has been omitted - but still giving you an element that always appears in that location regardless of the text being empty or not. (Useful for rounded corners, graphical boxes around components, etc.)


Installing

When you are ready to upload your custom theme, please see the Installing Your Theme article.