Extension is the base building block of our system to support dynamic content, understanding extension will allow you to do amazing things with Nilead.
In programming world, we make things easier for us (programmers) to understand by defining with stuffs as objects. These objects have properties and actions associated with them just like real-life objects (well, almost like real-life objects). For example, a Product you see in the store is an object with these basic properties and methods:
Without these objects, the system has no way to know how to store data inside the system and how these data should interact with each other.
When we develop a system, we usually create a fixed set of objects that we think our customers may need, well, we can never be more wrong. In the real world, each website is different with unique set of requirements.
For example, lets say you want to create a website for your school alumni and you may need to create new objects such as
Class should be associated with its
Members and has its own private
Galleries, now things get complicated.
In Nilead, you’ll create dynamic content using Extension. Extension are groups of data with Fields and Relationships you (or your designer/developer) define. Extensions are created from core objects such as Products, Content, Person, etc... (hence the name Extension). An Extension will inherit all the fields and relationships from its base object as well as its own defined fields and relationships. Once created, you can display this content however you’d like.
As you can see, extension can have both regular text, numeric fields as well as reference fields that link to other extensions.
Extension is a great way to add dynamic content support to your website, please check our document to learn how to Add and Update Extension.