Joomla – Template: Place Text (Part 8)

Posted: December 5, 2012 in Open source CMS

Share your word with the world

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:

View original post

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.