©2003-2006 LDraw.org

Administrative [1]: Xanthia Template Tags [2]

Posted by : OrionP on Oct 20, 2006 - 08:28 PM
Administrative [3]
This is a general list of Xanthia template tags to refer to when developing themes.

General:

<!--[pnml name="_TEXTDEFINE"]--> = Defined language / Diplays text

<!--[$imagepath]--> = path to image folder (defined in theme.php)

<!--[$themepath]--> = path to theme (defined in theme.php)

<!--[sitename]-->

<!--[slogan]-->

<!--[opentable]--> = Starts a table, 100% width <table><tr><td>

<!--[closetable]--> = Closes the table</td></tr></table>

<!--[opentable2]--> = Starts a table, width sized to contents <table><tr><td>

<!--[closetable2]--> = Closes the table</td></tr></table>

<!--[$color1]--> = theme colors.. 1-10 as defined in the xaninit.php

Master & module templates:

<!--[strip]-->- content -<!--[/strip]--> = strip white-space between tags.

<!--[$leftblocks]--> = left blocks

<!--[$centerblocks]--> = center blocks

<!--[$maincontent]--> = module content

<!--[$rightblocks]--> = right blocks

<!--[footmsg]--> = footer message as defined in admin settings

<!--[pagerendertime]--> = page render time (must set debug in config.php)

<!--[nocache]--><!--[pagerendertime]--><!--[/nocache]--> = don't cache captioned content

<!--[typetoolv80]--> = typetool

<!--[datetime]--> = date and time

<!--[displaygreeting]--> = hello $username

<!--[modulestylesheet]--> = get module style sheet if exists

<!--[pnbannerdisplay id=""]--> = display banner

----

<!--[pnml name="_SEARCH" assign="search_label"]--> = assign _SEARCH as the $search_label

<!--[search active="faqs, stories" label=$search_label class="pn-normal"]-->

----

<!--[search]--> = general search of all core modules

----

<!--[userlogin]--> = Displays a horizontal user login consisting of Username, Password, Remember me checkbox and submit button

<!--[userlinks]--> = Displays links for logged-in user (My Account | Logout) and anonymous user (Register | Login)

Blocks:

<!--[$title]--> = block title

<!--[$content]--> = block content

News-article / News-index:

<!--[$preformat.searchtopic]--> = topic image

<!--[$preformat.catandtitle]--> = cat and title

<!--[$preformat.fulltext]--> = full text used for News-article template

<!--[$preformat.bodytext]--> = full text minus home text

<!--[$preformat.readmore]--> = displays "read more.." if applicable

<!--[$preformat.notes|default:" "]--> Show notes (not needed if full text used)

<!--[$preformat.reads]--> = displays read count

<!--[$preformat.send]--> = adds send to a friend option

<!--[$preformat.print]--> = adds print option

<!--[$preformat.comment]--> = shows comment amount

<!--[$info.cattitle]--> = category/topic of article

<!--[$info.title]--> = title of article

<!--[$info.topicname]--> = topic title

<!--[$info.title]--> = article title

<!--[$info.counter]--> = shows amount of reads

<!--[$info.hometext]--> = shows short text.. used for News-index template

<!--[$info.fulltext|count_words]--> = a "words more" count (ie: 37 more words)

<!--[$info.informant]--> = author

<!--[$info.longdatetime]--> = long version of date and time

<!--[$info.briefdatetime]-->

<!--[$info.longdate]-->

<!--[$info.briefdate]-->

<!--[$info.sid]--> = story ID

<!--[$links.searchtopic]--> = link to topic (ie: <a href="<!--[$links.searchtopic]-->">)

<!--[articleadminlinks sid=$info.sid]--> = shows edit and delete to admin

Shows a "read more" image:

<!--[if $info.bodytext|count_words gt 0]-->

<a href="modules.php?op=modload&name=News&file=article&sid=<!--[$info.sid]-->&mode=thread&order=0&thold=0">

<img border="0" src="<!--[$imagepath]-->/readmore.gif" alt="Read the rest of the story..." />

</a>

<!--[else]-->

<!--[/if]-->

------------------------------------------------

Table1 & Table2:

<!--[$tablecontent]--> = shows table content
Note: Originally found here:
http://www.invalidresponse.com/module-Content-display-page_id-17.html
Links
  [1] http://www.ldraw.org/index.php?name=News&catid=5
  [2] http://www.ldraw.org/index.php?name=News&file=article&sid=404
  [3] http://www.ldraw.org/index.php?name=News&catid=&topic=5