phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Joomla - Template: Place Text (Part 8)

Tag: joomla, template   Category: Web Design, PHP Framework
post: 20 Dec 2007 read: 1,465


Joomla Template Tutorial - Part 8: Texts is an element in web. In this posting, we will learn how to place text in our template. We use JText to replace direct text.

This is example using text in joomla template:


<?php echo JText::_('Powered by') ?> 
<a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_('Valid') ?> 
<a href="http://validator.w3.org/check/referer">XHTML</a>
<?php echo JText::_('and') ?>
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.

Put it on your layout within index.php. Example result like this:



Series this article:
Joomla - Template: Understanding Basic Template (Part 1)
Joomla - Template: Understanding Module Position (Part 2)
Joomla - Template: My First Template (Part 3)
Joomla - Template: Activate Template (Part 4)
Joomla - Template: Creating Layout (part 5)
Joomla - Template: Using jdoc (part 6)
Joomla - Template: Using Parameters (Part 7)
Joomla - Template: Place Text (Part 8)
Joomla - Template: Creating Preview Thumbnail (Part 9)

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
CAPTCHA - part 3 : "Are you human or ....?" (Build Your CAPTCHA)

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting