606646
32
Zoom out
Zoom in
Vorherige Seite
1/58
Nächste Seite
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

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Kompozer 07 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Andere Handbücher von Kompozer 07

Kompozer 07 Bedienungsanleitung - Deutsch - 157 seiten


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info