| Page Publisher : Tutorial > Using PML Tags
What are PML Tags
PML stands for Publishing Markup Language. PML tags are used as place holders in an
HTML page to define which content can be updated. These tags can be used to create
various form fields, text areas and links. Once these tags are
inserted into the HTML a specified form field will be created in the page publisher
update page section. This is where the user can easily modify the defined content and update
the HTML page with Page Publisher.
Tag Structure
Tags structure is very similar to HTML.
A publish tag has an open tag and a closing tag.
<!-- publish -->Content goes here
<!-- /publish -->
A publish tag can include 2 main attributes, type and name.
<!-- publish type="textbox" name="About Us Content" -->Content goes here
<!-- /publish -->
For textboxes there is a special third attribute "rows" which can be included to specify the size
of the textbox. This is useful if you want to make an extra large textbox.
<!-- publish type="textbox" name="Page Content" rows=20 -->Content goes here
<!-- /publish -->
Type: This is where you specify the type of content the tag
will represent. Values can be: textbox, textfield, link, email or
image. If you don't specify a type the default is 'textbox'.
Name : This
is the name of the content that is to be updated. The name will be displayed
beside the textbox or text field in Page Publisher. Giving content fields
a name makes it easier for a user to tell the different between a 'title'
field and a 'content' field.
All PML tags and Attributes
The attribute "name" is common to all PML types.
HTML Attributes
Some PML tags will preserve any HTML attributes you put in the content manually (i.e. through the Edit HTML pane, rather than the Update page). For example, you can put things like border="1" for images or target="_new" for links. Currently HTML is preserved in these types: image, link, email, image_select, and file_select.
|