Creating Web App Entities

Modified: March 6, 2014 at 1:36 pm EST

An entity is a person, object, place, event, or a concept for which data is collected. Some entities come already built-in such as posts or pages.

create a new entity
To create an entity
  1. After you created your App, click on the Entities tab.
  2. Click on the Add New Entity link, you will see the new entity screen on the right.
  3. Fill in the entity fields and click Save button

The following describes the entity screen configuration fields.

Name
General name for the entity, usually singular max. 20 characters, can not contain capital letters,reserved words or spaces.
Plural Label
A plural descriptive name for the entity marked for translation.
Singular Label
It is the name for one object of this entity.
Hierarchical
Whether the entity is hierarchical (e.g. page). Allows Parent to be specified.
Description
A short descriptive summary of what the entity is.
Show Advanced Options
Enables the advanced section.
Menu Name
It defines the menu name text. This string is the name to give menu items. Defaults to value of entity name
Add New
It defines the add new text. The default is Add New for both hierarchical and non-hierarchical entities.
All Items
It defines the all items text used in the menu. Default is the Name label.
Add New Item
It defines the add new item text. If the entity hierarchical the default is Add New Post otherwise it is Add New Page.
Edit Item
It defines the edit item text. If the entity hierarchical the default is Edit Post otherwise it is Edit Page.
New Item
It defines the new item text. If the entity hierarchical the default is New Post otherwise it is New Page.
View Item
It defines the view item text. If the entity hierarchical the default is View Post otherwise it is View Page.
Search Items
It defines the search items text. If the entity hierarchical the default is Search Post otherwise it is Search Page.
Not Found
It defines the not found text. If the entity hierarchical the default is No Post found otherwise it is No Page found.
Not Found in Trash
It defines the not found in trash text. If the entity hierarchical the default is No posts found in Trash otherwise it is No pages found in Trash.
Parent Item:
It defines the parent text. This string is not used on non-hierarchical types. In hierarchical ones the default is Parent.
Available for Public
Whether this entity is intended to be used publicly either via the admin interface or by front-end users. -false- Entity is not intended to be used publicly and should generally be unavailable in the admin interface and on the front end unless explicitly planned for elsewhere. -true – Entity is intended for public use. This includes on the front end and in the admin interface. (default: True)
Has Archive
Enables entity archives. Will use entity name as archive slug by default.(default: True)
Exclude From Search
Whether to exclude objects of this entity from front end search results.(default: False)
Publicly Queryable
Whether queries can be performed on the front end in the URL address.(default: True)
Capability Type
The string to use to build the read, edit, and delete capabilities. The default is post. The specific capabilities can be assigned in the pro version.(default: post or page)
Rewrite
Triggers the handling of rewrites for this entity. To prevent rewrites, set to false. Default: true and use entity name as slug.(default: True)
Custom Rewrite Slug
Customize the permastruct slug. Max. 20 characters, can not contain capital letters or spaces. Defaults to the entity name. The specific custom rewrite slugs can be assigned in the pro version.(default: Entity name)
Query Var
Sets the query_var key for this entity. Default: true – set to $post_type. false – Disables query_var key use. A post type cannot be loaded at /?{query_var}={single_post_slug} (default: True)
Can Export
Can this entity be exported. (default: True)
Supports Editor
Adds the input text area for editor meta box
Supports Author
Adds the author meta box
Supports Featured Image
Adds the featured image meta box
Supports Excerpt
Adds a customized excerpt meta box
Supports Comments
Adds the comments meta box
Supports Trackbacks
Adds the trackbacks meta box
Supports Custom Fields
Adds the custom fields meta box
Supports Revisions
Adds the revisions meta box
Supports Page attributes
Adds the page attribute meta box
Supports Post Formats
Adds the post format meta box
Built-in Taxonomies – Supports Categories
Enables Built-in taxonomy support for categories
Built-in Taxonomies – Supports Tags
Enables Built-in taxonomy support for tags.
Show UI
Whether to generate a default UI for managing this entity in the admin area. (default: True)
Show in Menu
Where to show the entity in the admin menu. Show UI must be true. ‘False’ – do not display in the admin menu. ‘True’ – display as a top level menu. (default: True)
Icon Type (WPAS 3.0)
Sets the type of icon for your entity. You can assign an image, font-awesome or dashicon icons. If the default icon option is selected, then the pushpin icon is displayed. Dashicon icons can only be used for WordPress Version 3.8+.
Icon Class (WPAS 3.0)
Sets the class of the icon which will be displayed on the menu bar of the entity.
Menu-icon 16×16
The icon which will be displayed on the menu bar of the entity (default: Post icon)
Menu-icon 32×32
The icon which will be displayed on the edit and list screens of the entity. (default: Post icon)
Show Menu Below
The position in the menu order the post type should appear. Options are Posts, Media, Links, Pages, Comments, First Seperator, Plugins, Users, Tools, Settings, Second Separator.
Top level page
If an existing top level page such as ‘tools.php’ or ‘edit.php?post_type=page’, the entity will be placed as a sub menu of that.
Default Group Title
Sets the default group title in entity layout screen.

Related Videos

Convert Spreadsheets to WordPress. Part I

Convert Spreadsheets to WordPress. Part II

comments powered by Disqus