Freeway Reference: Customizing Freeway’s Output
213
213
You must ensure that the code you add is valid HTML; Freeway will insert it into the output without altering it.
If you wish to edit a markup item later, simply double-click on the item on the page. Use the HTML Markup dialog to edit it and click
OK again to close the dialog.
Using a Markup item as an inflow item
Markup items can also be added as inflow items within a run of HTML text. To
do this, click in the flow of text and then go to Insert>Markup item, paste in
the code and click OK.
Note 1: Freeway doesn’t read or modify the code that you add in a Markup item. If the code
references any images or other files which need to be uploaded to the web site, you will have
to upload these manually (see Dedicated FTP tools on page 142).
Extending the code generated for specific items
When you need to add code to the HTML used to represent a specific item, you can use the Extended… command. You’ll see this
command appear in several places in Freeway: on the Item menu, in the Edit Styles and Edit Hyperlink dialog and on the Page
menu. It is also possible to extend the code generated for frames and for rows and cells of tables created in Freeway.
This method is used to “extend” the HTML code by inserting extra code attributes inside the HTML tag that Freeway generates for that
object. When you choose the Extended… command, a dialog box appears in which you define one or more “name/value” pairs for the
object. You create a new name/value pair by clicking New… in the Extended dialog. The tag that is going to be extended by the name/
value pair you define depends on the type of object selected at the time and which Extended… command you’re using, and is shown at
the top of the dialog box.
• When you use the Extended… command on the Page menu, the name/value pair you define is added inside the
<BODY> tag for that
page.
• When you use the Extended… command in the Edit Hyperlink dialog, the name/value pair you define is added inside the
<A> tag.
You must define a hyperlink on the selected item in order for your name/value pair to be added to the output.
• When you use the Extended… command in the Item menu, the tag that will be extended depends on the selected object on the
page—this might be
<IMG> if a graphic element is selected, or <EMBED> if a multimedia element is selected.
Other items that can be extended in this way are frames and framesets
(using Extended… from the Item menu), Form items, CSS Layer items,
and Styles (these last two apply only to Freeway Pro.).
Name/value pairs are defined so that the text you type into the two fields
is added to either side of an “=” sign. In addition, the content of the
Value field will be enclosed in double quotes on output. For example if
you selected Extended… from the Page menu to extend the
<BODY> tag,
you could add a Name/Value pair as follows:
Name: onUnload
Value: alert(bye);
This would appear in the output like this:
<BODY … onUnload=alert(bye);>.
The effect of this would be that when the visitor left your page, a dialog
would appear saying “bye”.
Important: Because Freeway will use double quotes to encapsulate
the text you add for the value, you must use only single quotes within
the
Value field.
Minimized Extended Attributes
With HTML5 there are some “minimized” attributes which do
not require a Name/Value pair to be set up—for example you
can use just the Name “checked” without a Value to make a
checkbox on a form to be checked on page load.
Note that minimized attributes are not allowed in XHTML and
are automatically expanded by Freeway for XHTML output.
Comments to this Manuals