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) advertisements blog comments powered by Disqus |

