User Tools

Site Tools


nupusi:nucleus:helpskin

Nucleus CMS Skin Parts

The skin parts that make up a Nucleus skin.

Skins: Archive

An archive for one month. Behaves like a main index, but shows all the items from a certain month.

Very basic buildup for an archive page:

<html>
  <head>
    <title>My Weblog :: Archive</title>
  </head>
  <body>
 
    <h1>Archive</h1>
    <%archive(default)%>
 
  </body>
</html>

This will show the requested archive using the 'default' template

Skins: Archive List

An overview of all the months for which archives are available, and links to those archives

Very basic buildup for an archive list:

<html>
  <head>
    <title>My Weblog :: Archives</title>
  </head>
  <body>
 
    <h1>Archives</h1>
    <%archivelist(default)%>
 
  </body>
</html>

This will show the list of all available archive files, using the 'default' template

Skins: Errors

Used when there is an error

<html>
  <head>
    <title>My Weblog :: Error</title>
  </head>
  <body>
 
    <h1>Error!</h1>
    <%errormessage%>
 
    <br /><br />
 
    <a href="javascript:history.back();">Back</a>
 
  </body>
</html>

This will show the error message, plus a link to go back.

Skins: Image Popup

Used when a media file (image) needs to be shown in a popup window. This skin defines the layout that will be used in that case.

Very basic buildup for an imagepopup page:

<html>
<head>
  <title><%imagetext%></title>
  <style type="text/css">
   img { border: none; }
  </style>
</head>
<body>
  <a href="javascript:window.close();"><%image%></a>
</body>
</html>

Skins: Item Pages

These pages are used to show the full items, all comments that were made and a form to add comments.

Very basic buildup for a detailed item page:

<html>
  <head>
    <title>My Weblog :: Item</title>
  </head>
  <body>
 
    <h1>Item</h1>
    <%item(detailed)%>
 
    <h1>Comments</h1>
    <%comments(detailed)%>
 
    <h1>Add Comment</h1>
    <%commentform%>
 
  </body>
</html>

This will show the item and comments using the 'detailed' template, and add a standard commentform.

Skins: Main Index

This skinpart is used to show the most recent entries of your weblog. It's usually the home page of your site.

Very basic buildup for a main index:

<html>
  <head>
    <title>My Weblog</title>
  </head>
  <body>
 
    <h1>My Weblog</h1>
    <%blog(mytemplate,20)%>
 
  </body>
</html>

This will show the 20 most recent items of the default weblog (unless overridden), using the 'mytemplate' template.

Skins: Member

Used to show member details.

Very basic buildup for a member-detail page:

<html>
  <head>
    <title>My Weblog :: Member details</title>
  </head>
  <body>
 
    <h1>Info about <%member(name)%></h1>
    Website:
    <a href="<%member(url)%>"><%member(url)%></a>
 
    <h1>Send Message</h1>
    <%membermailform%>
 
  </body>
</html>

This will show the members name, website address and a mailform.

Skins: Search

Used to show search results.

Very basic buildup for a searchresults page:

<html>
  <head>
    <title>My Weblog :: Search</title>
  </head>
  <body>
 
    <h1>Search</h1>
    <%searchform%>
 
    <h1>Searchresults</h1>
    <%searchresults(default)%>
 
  </body>
</html>

This will show search results using the 'default' template.

nupusi/nucleus/helpskin.txt · Last modified: 2008/12/06 13:56 (external edit)