Tabulas Templating Tags
• posted by: sythiel • November 22, 2011 @ 09:34 PM (+8 GMT) • stickied •   

Here's the tabulas template tags for everyone's reference. 

Main template tags


<!--MAIN['CONTENT']--> 
   This is the tag to display the main content on each page. 
<!--REQUIRED['NAVBAR']--> 
   This is the navbar. 
<!--REQUIRED['ADVERT']--> 
     This is the tag for your advertisement. All templates require this tag, even on Patron accounts. As of 19 March 2010, no advertisements are shown on Tabulas, but the tag is still required.
<!--SITE['USERICON']--> 
   Shows your default usericon 
<!--SITE['USER']-->
Displays the username, with a link to the userpage
<!--SITE['REALNAME']-->
Real name of the user
<!--SITE['LOCATION']-->
   The location of the user
<!--SITE['USERNAME']--> 
   This displays your username. It is always suggested to use this instead of hardcoding your username because if you change your username, this will automatically change as well! 
<!--SITE['TITLE']--> 
   Your site title, as set in your profile
<!--SITE['SITETITLE']-->
   The same as previous, except that on entry pages it includes the entry title.  E.g, if your Tabulas title is "Anon's Tabulas" and the entry being viewed is titled "Cool!", then this template tag will display "Cool! - Anon's Tabulas".  On all other pages it is the same as<!--SITE['TITLE']-->.
<!--SITE['DESCRIPTION']--> 
   Your site description, as set in your profile 
<!--SITE['COMMUNITIES']--> (*) 
   Displays the list of communities you are currently a part of. Currently, Tabulas communities are not supported. 
<!--SITE['PAGES']--> (*) 
   Displays all your content pages 
<!--SITE['LINKS']--> (*) 
   Display your links 
<!--SITE['CATEGORIES']--> (*) 
   Displays your categories 
<!--SITE['TAGBOARD']--> 
   Displays your tagboard 
<!--SITE['METATAGS']--> 
  Adds and displays important HTML header information 
<!--SITE['URL']--> 
   Displays your site URL. It is suggested you use this in your main navigation links as it will dynamically adjust itself when using a domain name other than tabulas.com 

Entry Templating Tags


Tags for entry templating are below. Asterisks indicate that this tag has the optional power. 

<!--ENTRY['DATE']--> 
   Date of entry 
<!--ENTRY['ONEDATE']--> (*) 
   Date of entry; will only display once per day 
<!--ENTRY['TITLE']--> 
   Title 
<!--ENTRY['PERMALINK']--> 
   The URL to your entry 
<!--ENTRY['DATA']--> 
   Entry data 
<!--ENTRY['TIME']--> 
   Entry time 
<!--ENTRY['CATEGORY']--> (*) 
   Category 
<!--ENTRY['USERICON']--> (*) 
   Usericon 
<!--ENTRY['COMMENTS']--> 
   Comment link 
<!--ENTRY['USER']--> 
   Username of entry 
<!--ENTRY['USERNAME']--> 
   Username of entry as a link to their Tabulas (e.g. http://www.tabulas.com/~tabulas/
<!--ENTRY['ATTACH']--> 
   Attached images (being deprecated) 
<!--ENTRY['EXTRA']--> (*) 
   This displays a list of status information about the post (i.e. whether it's a sticky and what privacy setting it has attached to it). The list will appear as a comma list (for example: friends-only, sticky or private 
<!--ENTRY['MUSIC']--> (*) 
   Music of the moment 
<!--ENTRY['BOOK']--> (*) 
   Book of the moment 
<!--ENTRY['MOOD']--> (*) 
   Mood of the moment 
<!--ENTRY['WATCH']--> (*) 
   What you're currently watching (TV or movies) 
<!--ENTRY['METADATA']--> (*) 
   Does BOOK, MOOD, or MUSIC exist?
<!--ENTRY['TOOLBAR']--> 
   Displays links to edit or delete the entry.  You can only see these when you're logged in and viewing your own entries.

(*) Optional Tags

Tabulas 2.0 allows you to set optional data. For example, you may not want to always display your list of communities. If you don't display your communities, you may have some HTML you may not want to display with it (for example, a community header image). Tabulas now has "optional" tags which only display the data between them if that data exists. 

Optional tags are done like this: <!--SITE['TAG_NAME']::START--> <!--SITE['TAG_NAME']--><!--SITE['TAG_NAME']::END--> 

A practical example is in the ONEDATE tag for entry templating. Let's say you do something like: <h1><!--ONEDATE--></h1>. Under the old templating engine, if the value for ONEDATE didn't exist, it would simply output <h1></h1> which is very annoying! So instead of you do someting like: <!--ENTRY['ONEDATE']::START--> <!--ENTRY['ONEDATE']--><!--ENTRY['ONEDATE']::END-->, if the value for ONEDATE doesn't exist, then everyting between the <!--ENTRY['ONEDATE']::START--> and <!--ENTRY['ONEDATE']::END--> will be omitted by the templating engine.


permalink • 6 stars shined •
 

Related Entries

    sythiel has turned on comment autolocking after 14 days.
    Comment posted on November 26th, 2011 at 09:36 PM
    ask lang po, how do I attach like, photos from my own gallery into the tabulas template? There's this photo I want to use as a banner po kasi.
    Comment posted on November 26th, 2011 at 10:47 PM
    Question: Will you still be using the same template you are using now?

    If so, look for the line below

    <div class="banner"> <img src="http://i130.photobucket.com/albums/p241/up4grabs_album/give%20your%20heart%20away/hearttop.jpg" width="450" height="310"> </div>


    Just change the value of the img src="" to the image you want to use.

    need more help? i'll be available starting the 1st of december :)
    Comment posted on November 29th, 2011 at 10:37 PM
    actually, baka po hindi na rin. I'm really clueless as to how to change yung mga layout layout na ganyan :( i have an idea in mind, pero i can't excute it..
    Comment posted on December 1st, 2011 at 08:52 PM
    i can help you :)
    Comment posted on December 1st, 2011 at 09:45 PM
    gheeeesh. thank you po. I will try to give you an idea of how I want my page to look like po. please help. :)
    Comment posted on November 26th, 2011 at 10:47 PM
    Question: Will you still be using the same template you are using now?

    If so, look for the line below

    <div class="banner"> <img src="http://i130.photobucket.com/albums/p241/up4grabs_album/give%20your%20heart%20away/hearttop.jpg" width="450" height="310"> </div>


    Just change the value of the img src="" to the image you want to use.

    need more help? i'll be available starting the 1st of december :)

    navigation
    tagboard


    your name:

    url:

    your message:



    radioblog


    radioblog goes here

    categories




    pages




    link exchange




    moon phase


    CURRENT MOON


    extras


    Error: Embedded data could not be displayed.