Parts


In the TextSide Engine "Parts" are reusable, drag and drop components that you can use to build your website. Parts usually provide a single feature or small editor that allows you to add content to a page. For example, a part may allow you to add HTML, BBCode, or even the current weather to a page.

Unlike CodeBehind Pages, parts are reusable on multiple pages. Users can simply drag and arrange a part to dynamically create a page without needed to edit code directly. Parts can even be placed on CodeBehind pages, mixing your hard coded PHP with reusable, virtual Parts.

As an example, here you can see a page (in edit mode) with three different parts placed. Once out of edit mode, the borders will no longer be visible.

parts.jpg

Here you'll find documentation that covers how to create your own parts.

Please note, much of the code for Parts is almost the exact same as CodeBehind Pages. If you know how to create CodeBehind pages, you already know most of what you need to know to create your own parts.

Creating a Part


Introduces how to create your own parts, where to place them, and how to install them.

Resources


Convers how to organize resources such as images, templates, files, javascript, and css that will be used for a part.

Templates


Explains how to use the built in template system to help render your part. Templates are a method that allows you to separate your pages logic from its design.

View Handlers


Introduces the idea of View Handlers within parts. View Handlers allow a single part to render differently based on the value of a variable in the query string. This allows you to have a part's rendering to change without having to create a new page.

Event Handlers


Introduces Event Handlers. These are methods within your part that are used to handle form submits and various events triggered by the user on page refresh.

AJAX Handlers


Introduces AJAX Handlers. These are methods within your Part that are used to handle AJAX events. This allows you to easily perform events on your part as a result of user actions without needing a page refresh.