Table of Contents

Nucleus CMS Skin Variables

Available skin variables for Nucleus skins.

Skinvar: additemform

Shows an add-item form for the currently selected blog (usually the default one). Mostly used in conjunction with preview

None

index

<%additemform%>

Skinvar: adminurl

Inserts the full URL to the Admin Area

None

all

<a href="<%adminurl%>">Admin Area</a>

Skinvar: archive

Shows the archive for the selected month and the selected blog (usually the default one), using a given template

Required

Optional

archive

<%archive(mytemplate)%>
<%archive(mytemplate,mycategory)%>

Skinvar: archivedate

Inserts a formatted date for an archive date. Using no parameters, this will either insert '15 august 2002' or 'august 2002' if the archive is for august 2002

^ Name ^ Value ^

LocaleLocale in which the date must be formatted
FormatDate format (strftime variables)

archive

Archive for <%archivedate%>
Archive for <%archivedate(dutch)%>
Archive for <%archivedate(en,%B %Y)%>

Skinvar: archivedaylist

The same as the archivelist skinvar, but shows an entry for each day instead of for each month

Required

Optional

index, archive, archivelist, search, item

<%archivedaylist(mytemplate)%>
<%archivedaylist(mytemplate,mycategory)%>

Skinvar: archivelist

Shows the list of available archives for the currently selected blog (usually the default one), using a given template

Required

Optional

index, archive, archivelist, search, item

Inserts a link to the archive for the currently selected blog and category (or the default blog when no blog selected)

Optional

all

<%archivelink%>

Skinvar: archivetype

Either day or month, indicating which type of archive is currently being shown

None

archive

Skinvar: blog

Inserts the most recently added items of the currently active blog (usually the default one) into the skin.

Required:

Optional:

index, item, archive, archivelist, search

<%blog(default,15)%>
<%blog(default,5(15))%>
<%blog(mytemplate)%>
<%blog(mytemplate,5,mycategory)%>

Skinvar: blogsetting

Inserts a setting specific to the currently selected blog (usually the default one)

index, archive, archivelist, search, item, member

<%blogsetting(name)%>
<%blogsetting(id)%>
<%blogsetting(desc)%>
<a href="<%blogsetting(url)%>">...</a>

Skinvar: category

Inserts some information about the currently selected category. When no category is selected, does nothing.

Optional

all

<%category%>
<%category(id)%>
<%category(desc)%>
<%category(name)%>

Skinvar: categorylist

Inserts a list of categories for a blog (defaults to the currently selected blog), using a given template

Required

Optional

index, archive, archivelist, search, item

<%categorylist(mytemplate)%>
<%categorylist(mytemplate,myweblog)%>

Skinvar: comments

Shows the comments for the currently selected item using a given template.

item

<%comments(mytemplate)%>

Skinvar: commentform

Adds a commentform to an item page.

Optional:

item

<%commentform%>
<%commentform(http://host/thanks.html)%>

Skinvar: errormessage

Inserts the message corresponding to the error that occurred

None

error

<%errormessage%>

Skinvars: if/else/endif

Inserts a content block only when certain conditions are fullfilled

Only the if skinvar has options

Condition types

all

<%if(loggedin)%>
Welcome back!
<%else%>
Welcom guest!
<%endif%>
<%if(category,catname,Off Topic)%>
Welcome to the 'Off Topic' category.
<%endif%>

If you want something to be displayed only if a condition is not fullfilled, you can use a construct like this:

<%if(skintype,error)%><%else%>
<%blogsetting(name)%>
<%endif%>

Skinvar: ifcat

Deprecated as of Nucleus v2.0. Use <%if(category)%> instead.


None

all

<%ifcat(Current Category: )%><%category%>

Skinvar: image

Inserts the selected image (for popup images)

Optional

|imgtag (default)|Full XHTML <img … /> tag|

urlImage file URL
widthimage width
heightimage height
captionimage caption (text to go with image)

imagepopup

<%image%>

Skinvar: imagetext

This skinvar is deprecated since Nucleus v2.0. You should use <%image(caption)%> instead


Inserts the caption text for a popup image

None

imagepopup

<%imagetext%>

Skinvar: item

Shows the currently selected item (without comments) using a given template

item

<%item(mytemplate)%>

Skinvar: itemid

Inserts the ID of the currently selected item

None

item

<%itemid%>

Adds a permanent link for the item.

Optional

item

<%itemlink%>

Skinvar: itemtitle

Inserts the title of the item, with HTML-stripped off and entities encoded

None

item

<%itemtitle%>

Skinvar: loginform

Adds a loginform, or shows a “You are karma (Log out)” message

None

all

<%loginform%>

Skinvar: member

Inserts some info about on the currently logged in member. On member detail pages, extra options are available to show the same information for the requested member.

When the visitor is not logged in, the your… parameters will insert nothing

Information on the logged in member:

Information on the requested member (only available on member detail pages):

all

<%if(loggedin)%>
you are <%member(yourrealname)%>
<%endif%>

Skinvar: membermailform

Shows a form through which a logged-in member can send a message to the member which details are being shown (on member detail pages)

Optional:

member

<%membermailform%>

Skinvar: nextarchive

Inserts the archive attribute that corresponds to the archive of either 1 day or 1 month further in time. This value can be used inside URLs to select an archive.

None

archive

<a href="index.php?archive=<%nextarchive%>>....

Skinvar: nextitem

Inserts the ID of the next item in the blog

None

item

<%nextitem%>

Skinvar: nextitemtitle

Inserts the title of the next item in the blog

None

item

<%nextitemtitle%>

Inserts a link to the next item (on item pages) or to the next archive (on archive pages)

Optional

item, archive, search, index

<%nextlink%>

Skinvar: nucleusbutton

Inserts a nucleus button, with link to the Nucleus website.

Optional:

all

<%nucleusbutton%>
<%nucleusbutton(nucleus/nucleus.gif,46,43)%>

Skinvar: otherarchive

Shows the archive for the selected month, using the given blog and template

Required

Optional

archive

<%otherarchive(myblog,mytemplate)%>
<%otherarchive(myblog,mytemplate,mycategory)%>

Skinvar: otherarchivedaylist

The same as the otherarchivelist skinvar, but shows an entry for each day instead of for each month

Required

Optional

all

<%otherarchivedaylist(yourblog,mytemplate)%>
<%otherarchivedaylist(yourblog,mytemplate,mycategory)%>

Skinvar: otherarchivelist

Shows the list of available archives for a given blog, using a given template

Required

Optional

all

<%otherarchivelist(yourblog,mytemplate)%>
<%otherarchivelist(yourblog,mytemplate,mycategory)%>

Skinvar: otherblog

Inserts the most recently added items of a given blog into the skin.

Required:

Optional:

all

<%otherblog(myblog,default,15)%>
<%otherblog(yourblog,mytemplate)%>
<%otherblog(yourblog,mytemplate,15,mycategory)%>
<%otherblog(yourblog,mytemplate,5(15),mycategory)%>

Skinvar: othersearchresults

Shows the searchresult in a give blog for the current query, using the given template

Required:

Optional:

search

<%othersearchresults(myblog,mytemplate)%>

Skinvar: prevarchive

Inserts the archive attribute that corresponds to the archive of either 1 day or 1 month back. This value can be used inside URLs to select an archive.

None

archive

<a href="index.php?archive=<%prevarchive%>>....

Skinvar: preview

Inserts an item-preview into the page, using a given template (to be used in conjunction with additemform)

index

<%preview(mytemplate)%>

Skinvar: previtem

Inserts the ID of the previous item in the blog

None

item

<%previtem%>

Skinvar: previtemtitle

Inserts the title of the previous item in the blog

None

item

<%previtemtitle%>

Inserts a link to the previous item (on item pages) or to the previous archive (on archive pages). For search and index pages

Optional

item, archive, search, index

<%prevlink%>

Skinvar: query

Inserts the current search query.

None

search

<%query%>

Skinvar: referer

Inserts the refering URL (can be empty)

None

all

<a href="<%referer%>">back</a>

Skinvar: self

Inserts the filename of the page currently being displayed (index.php or whatever you changed it to)

None

all

<%self%>

Skinvar: searchform

Shows a search form for the current blog.

Optional:

index, archive, archivelist, search, item

<%searchform%>
<%searchform(otherweblog)%>

Skinvar: searchresults

Shows the searchresult for the current query

Required:

Optional:

search

<%searchresults(mytemplate)%>

Skinvar: sitevar

Includes a site variable

all

<%sitevar(name)%>
<%sitevar(url)%>
<a href="mailto:<%sitevar(email)%>">Admin</a>

Inserts a link to the main page of the weblog. Takes into account the currently selected blog and category.

Optional

all

<%todaylink%>

Skinvar: vars

This skinvar is deprecated since Nucleus v2.0. It's a small pain to insert this HTML yourself using the itemid skinvar


Inserts a hidden form-input field with the itemid.

<input type=“hidden” name=“itemid” value=“1234” />

None

item

Skinvar: version

Inserts the current Nucleus version.

None

all

<%version%>