Home :: Login :: Forgot Password :: Search :: FAQ
Support our host

News

Software

Reference

Community

Parts Library

About Us

Administrative
Published By OrionP on Friday, October 20, 2006 - 08:28 PM

Printer-friendly page
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



Recipient 2007
Kevin Clague

Want to learn more about LDraw? Check out the following books:




Current Contest Winners

Model of the Month


Scene of the Month



Vote for Next Month's Winner

Submit Your Creation for Next Month's Contest

What's new in lugnet.cad?

CAD and FIRST Lego League (FLL)
by Darrell Urbien - 10 hours ago

Re: Looking for part - Hinge Arm 2x2x6
by Michael Heidemann - 17 hours ago

Re: "LGEO" and "L3P v1.4 BETA 20080930"
by Jeff Boen - 36 hours ago

Re: Looking for part - Hinge Arm 2x2x6
by Dave Heintz - 36 hours ago


There are 68 unlogged users and 0 registered users online.

You can log-in or register for a user account here.





 


 Log in Problems?
 New User? Sign Up!

©2003-2008 LDraw.org, see Legal Info for details.
LDraw™ is a trademark owned and licensed by the Estate of James Jessiman
This website is powered by Peeron.com.

LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site. Visit the official Lego website at http://www.lego.com.
LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.