altering one template is a lot
easier than changing the page
for each individual product.
In systems like this, when
you have a large block of text
that you can edit, such as a
news article, blog entry or the
description of a product in an
e-commerce store, you will often
see a text editor displayed.
Text editors usually have
controls a little like those on
your word processor, giving
you different options to style
text, add links or insert images.
Behind the scenes these editors
are adding HTML code to your
text, just like the code you have
seen earlier in this chapter.
Many of these editors will have
an option that allows you to see
(and edit) the code that they
Once you know how to read and
edit this code, you can take more
control over these sections of
In the example above, you can
see that the text editor has a tab
for Visual / HTML views of what
the user enters. Other systems
might have a button (which
often shows angle brackets) to
indicate how to access the code.
Some content management
systems offer tools that also
allow you to edit the template
ﬁles. If you do try to edit
template ﬁles you need to check
the documentation for your CMS
as they all differ from each other.
You need to be careful when
editing template ﬁles because
if you delete the wrong piece of
code or add something in the
wrong place the site may stop