606646
32
Zoom out
Zoom in
Previous page
1/58
Next page
KompoZer User Guide 17 December 2007 Based on version 0.7.10 32
7 Templates
7.1 What are templates?
Templates are basically pages having some content
(e.g. a letter head) which can be re-used to create other
pages which will have the same underlying page struc-
ture and, often, the same graphical layout.
Templates are not altered in use and can be used
over and over again. The simplest template is probably
a blank sheet which links to a stylesheet for use
throughout a site. More common is a page which has
a banner and perhaps a menu to appear on every
page. Last might be a complete page layout for use on
all, or many, pages of a site but which includes areas
for customising individually.
Templates may be considered as having two parts
- the fixed part or ‘boilerplate’ which remains the same
for every page and the ‘editable part’ which changes.
KompoZer recognises two types of editable part.
Block and flow. Block items are like any other html
block and may consist of paragraph-like items or divs
(which may contain several blocks). Blocks may be
made repeatable - so that several similar items may be
added if required.
Flow items will be contained within other block
items in line with the text, for instance to change one
or two words in a paragraph.
7.2 Create a new template
Templates are prepared
and edited using KompoZer
just like any other page.
To create a template
1 Click File > New then
select ‘A blank tem-
plate’ and ‘Create’.
Note All templates will be
created with the Transitional HTML Doctype.
2 Add any content which is to appear on all pages
based on the template.
3 Format this in the normal way.
4 If the formatting is to be based on a style sheet
prepare this in the normal way as detailed in
section 4.2.4.
Note For this to be successful the template
must first be saved.
5 Add the areas which are to be made editable.
Fill these in using dummy text so that a complete
page layout is achieved even though some of it may be
meaningless. Format this as required.
Note Useful dummy text can be found at
http://www.lipsum.com/.
Note There are other approaches to page layout
but the method described is simple and reliable.
The first figure shows a page prepared as described.
7.3 Saving templates
To save a template
1. Click File > Save or File > Save As.
The extension ‘mzt’ will be selected automatically.
7.4 Create a template from a page
A pre-existing document may be transformed into
a template
1. Click Format > Page Title and Properties
2. Check the box ‘This page is a template’.
3. Click OK.
4. Click File > Save as. The file type ‘HTML
Template’ will be completed.
5. Name and save the file as normal.
7.5 Setting up template details
The content of the page
boilerplate and examples
of editable content should
already be set up and for-
matted.
To make blocks editable
1 In turn, select each
block that you wish
to make editable.
2 In HTML tags view
select the block by clicking its tag.
3 On the status bar right-click the corresponding
highlighted tag.
4 Click Templates > Make editable.
5 In the ‘Insert an editable area’ window give the
block a recognisable name. Now check the op-
tions boxes if required.
Note The option ‘Area is optional’ allows it to be
deleted easily when the page is in use. ‘Area is
repeatable’ allows copies to be made rapidly.
‘Area is moveable’ turns the area into a movable
layer (see section 3.10).
Warning In KompoZer 0.7.10 this option is dis-
abled
6 Click OK.
To make a flow selection editable
1 In turn select (highlight) each section of text that
you wish to make editable.
2 Click Insert > Templates >Insert editable area.
3 In the ‘Insert an editable area’ window give the
block a recognisable name.
4 Leave checked the option ‘Flow of text’.
5 Check the options boxes if required as described
above.
Note The option ‘Area is moveable’ is inappro-
priate for flow areas).
6 Click OK
When you have finished save the template as de-
scribed in section 7.3
The second figure (above) shows a template at this
stage. It has one non-repeatable block item The
program name, Two non-repeatable flow items The
Date and Language, Two repeatable flow items The
Changed areas and Other languages; the second of
these is optional.
32


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Kompozer 07 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Kompozer 07 in the language / languages: English as an attachment in your email.

The manual is 2,17 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Kompozer 07

Kompozer 07 User Manual - German - 157 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info