P2Dpro

How to create your own template?

TweetXT has a simple mechanism to define your own templates. Some basic knowledge in PHP and HTML/CSS is required though. If your familiar with those topics it's quite easy to create your own look&feel for tweetxt.

Don't start from scratch. Copy one of the existing templates from modules/mod_tweetxt/tmpl, rename it and start editing.

 

All necessary data is available in the $twitter-object. It basically has two main parts:

  • $twitter->user: contains all user information retrieved from twitter.com
  • $twitter->tweets: is an array of the latest postings the user made to twitter.  

The $params-object contains the module configuration parameters.

Use the print_r_html($twitter) function to get a formatted view on all $twitter attributes. 

After you have created your new template it will automatically appear in the list of available styles in the module manager.

 

Get in touch

Search

This site is hosted by


Copyright © 2003-2009 by JoomlaXT! Template based on afterburner by Rockettheme
Joomla!(TM) is the trademark of Open Source Matters, Inc in the United States and other countries. The Joomla! name and variations on it utilizing shortforms for it such as J, Joo, Joom, etc, used on this site, is used under a limited license granted by Open Source Matters. JoomlaXT! is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.