Short Text


The Short Text icon in the Dreamweaver object palette

The WebYep Short Text Element is useful for short text passages like headlines, product names or prices. Contrary to the Long Text Element the user can not format the content of this element. So the web designer is in full control over the look of the Short Text's content.

This element is represented by the following PHP code:

<?php webyep_shortText("Fieldname", false); ?> more...

Arguments for the webyep_shortText() PHP function call:
(see "Attributes of the Short Text Element" below for details)
  1. "Fieldname": A string – the field name for this element.
  2. true/false: A boolean – the scope for this element.
    true if the element should have the same content on all pages (global).
    false if it should have different content on each page it appears on.


The Short Text Element in action - by clicking the "Edit" button, the Short Text Editor window opens


The Short Text Editor window


To Top of Page

Attributes of the Short Text Element


The Dreamweaver inspector showing the Short Text Element's attributes

Field name

A distinctive name for that element. This name will be displayed in the page in edit mode to give the user a hint on what this elements content stands for and to distinguish the different WebYep Elements in a page.

Content

When set to "for this doc only" the elements content is unique for this page - even if another element on a different page has the same name. If set to "for all documents" the content will be the same on all pages for elements of this kind that use the same name.


To Top of Page
© 2009, Objective Development