File properties

Boomla files have the following properties:

  • Title
  • Link
  • Type
  • StatusCode

Title

Because the Boomla filesystem was designed for websites, file names in Boomla can only contain alphanumeric chars [a-zA-Z0-9], dots ., underscores _ and dashes -.

The file’s title on the other hand allows you to store (almost) any chars. For example in the menu of your page, you see the file titles listed, while if you visit those pages, the URL will show their file names.

Link

As the name suggests one can link files, but let’s skip it for now.

Type

In Boomla, we can’t use file extensions the way they are used on PCs. The root file of a website is just that, a file. It has a filename too, which is the domain of the website. Thus, the file name of the root file of this website is boomla.com. So, its file extension would be set in stone, com.

Similarly, browsers ignore file extensions. There is a Content-Type header telling the browser how to interpret the contents.

Thus, in Boomla, there are no file extensions. Instead, there are file types. There are a few built-in types and one can create custom types in user-space as well. Each application in Boomla is a distinct type. So, by installing apps, you get new types you can use.

The file type is expected to be a valid path.

As you have seen before, you can edit the file properties in the IDE by clicking the open file properties, attributes icon. It’s a JSON formatted string.

File attributes

You may notice there is another entry named attr. It can hold file attributes. While file properties are system defined, attributes are user defined. There you can store your custom anything. This comes handy when you write an app that needs to store structured data.