Vector: entityThe entity vector is used to extract data from the model. It consists of 2 or 3 parts, depending on context. When used in normal conditions, it follows the format:
[vector name of table].[record id].[vector name of field]
If the entity vector is used within a
[vector name of table].[vector name of field]
If the field is of type media (a picture is uploaded instead of text being typed in), then the vector will return the full URL of the media item. That can then be placed within an image or anchor tag.
The Vectoran engine is also smart enough to traverse foreign key relationships. If you have a table with a field that references a record in another table, you can get the referenced table's values very easily using the following format:
[vector name of table].[vector name of field].[vector name of field on referenced table]
There may be cases where the text within an entity's field contains vectors. Under normal conditions, the Vectoran engine will parse out these vectors before returning the text. In the event that you do not want the vectors parsed, use the parse=false option. An example of this is show in the examples section.
This vector would return the address of the home record with id of 1.
This vector would be used within repetition (
This demonstrates how to display the floor_plan image uploaded to the home.
This example shows how you can prevent the Vectoran engine from parsing any vectors that appear in the description field on the home table.