Fastpage Help

Category Section - Entities

 <<previous | next>>  
  Entities
 


Click here to return



 

 
Click here to view a sample template with entities - before the template is parsed

Entities are place holders attached to Templates enclosed inside curly braces.
Templates are created on you own local computer and uploaded using Fastpage to the web server.
Instead of the information being held on a static web page the entity is a place holder for information held in a database.
When the template is read by a special parsing engine the information inside the entity place holder is replaced by the database contents.

As you can see by the example above instead of the information being held as static information, the information is dynamically held in a database allowing an end user to change the contents.
 

Structuring Entities

Entities must not have spaces in between as per the example above - instead underscores are used to make the entity readable.
There is another reason for using underscores and this is the automatic resolving of entity names when the template is parsed.
The underscores are replaced by spaces to create an automatic entity name in the database.
{index_item2_info} becomes index item2 info as an entity name
You can not have duplicate entities on the same template page


Entity Types
Standard Body TextUsed by the Graphical editor or HTML text Editor
You can upload images using this entity type if you use the graphical editor
Menu OptionDefines an Entity place holder to attach a Menu to later on
Note - when you Add a Menu you will be asked where you want the menu to be attached to
Page TitleThis is a legacy option seldom used
It surrounds the text by H2 tags -

{entity}

Standard ImageThis is a legacy option, but can be used if all you want is for the user to upload an image and nothing else.
Standard TitleThis is another Legacy option but places bold tags around the entity {entity}
Note - Legacy options are for backwards compatibility with older versions of Fastpage
Other entity types may be defined according to the plug in modules used.

Special Entities
(all standard Body Text entity types)
TitleSyntaxDescription
Global Entities{global_xxxxx}
Global Entities allow you to define an entity which can be used on many templates, providing the global entity has the same name on each template
Global Entities are resolved automatically when you parse the template and assigned the entity type 'standard body text'
End Users must be authorised to edit Global Entities
Link Entities{link_xxxxx}
Link entities allow you to create a place holder for a hyperlink to another Fastpage template.
You resolve the links later by using the 'Managed Links' option under the admin menu
Menu Entities{menu_heading_name}Allows you to define the Menu Name to the detailed Menu Template automatically
{menu_template_title}Allows you to define the Menu Item name (1st Heading) to the detailed Menu Template automatically
{menu_template_description}Allows you to define the Menu Item description (2nd Heading) to the detailed Menu Template automatically
{menu_template_date}Allows you to add the date the Menu Item was created automatically to the detailed Menu Template.
{menu_return}A special return entity that will return to the menu list/dropdown
Under edit mode this will also return you to the correct module the edit was initiated from.
{menu_links}allows Previous and Next links to display on the detailed menu template
 Note:- The menu links are described later on under Menu's - click here if you want to go there

Summary

  • Entities are attached to Fastpage templates.
  • Entities are enclosed inside curly braces.
  • Entities must not contain spaces.
  • Entities can be resolved automatically if you use the underscore _ in the entity name {index_special_items}
  • There are special reserved entities you must be aware of.
  • Web designers are in control of what can be changed, so important HTML information is not destroyed.