# CMS Pages Source: https://docs.fragmentor.io/editor/cms-pages CMS Pages are a special type of page designed to handle dynamic content (typically fetched from an external data source) more efficiently. When creating a CMS page, you will be prompted to select a CMS item from one of the Fragmentor plugins (e.g. Tebex). This CMS item (e.g. Tebex Product) will then be shown in the **"Context"** field of the page settings. CMS Pages inform the editor: "This page is linked to this CMS item". # Create CMS Page To create a new CMS page, click on the **"+"** button on the "Pages" tab, and press the **"CMS Page"** button. You can select a collection (e.g. Products) and choose what CMS item you would like to create a CMS page for. Typically, you would want to create one CMS page for every CMS item. Similarly, you can select a template to be used on the page. Hit the **"Create Pages"** button to create the CMS pages. # Edit CMS Page When a CMS page is created, you can edit it just like a regular page. The only difference is that you will see an additional **"Context"** field in the page settings. This field indicates what CMS item the page is linked to. # Motivation Behind CMS Pages As you now know, **CMS pages are linked to a specific CMS item**. This knowledge is used by plugins to handle logic and populate fragments with data. Consider the Tebex plugin in particular. ### Automatic Data Source When a fragment has its data source set to **"Automatic"**, it will automatically fetch data from the linked CMS item. For example, if you have a Product CMS page linked to a specific product, and you add a Product fragment with its data source set to **"Automatic"**, the fragment will automatically fetch data from the linked product. This is extremely powerful when used in conjunction with [templates](/editor/templates.mdx). You can create a single Product template, and assign it to all Product CMS pages. Each page will then automatically fetch data from its linked product. ### Automatic Routing Page context is also used to handle routing logic. For example, when clicking on a Product fragment to view more details, the plugin will look through all CMS pages to find the one that is linked to the product. If found, it will navigate to that page. # Fragments Source: https://docs.fragmentor.io/editor/fragments Fragments are reusable components that can be added to pages or templates. Some fragments act as sections, they can be added on a page or template directly. Other fragments are children of those sections, and cannot be added directly but have to exist within another fragment. # Insert Fragment In order to insert or add a fragment to a page or template, click the **"+"** icon in the sidebar. A list of available (section) fragments will appear. Depending on the plugins you have installed, you may see several more fragments. You can use the search bar to quickly find a specific fragment. Once you have found the fragment you would like to add, simply drag and drop it into the main area of the editor. You can also click on the fragment to add it to the bottom of the page/template. # Edit Fragment ### Fragment Theme It is possible to apply a theme to a section fragment. When such a fragment is selected, the sidebar will show a **"Theme"** dropdown, from which you can select any of the themes you created. More information about themes can be found [here](/editor/themes). ### Fragment Background Some fragments allow you to set a background. When such a fragment is selected, the sidebar will show a **"Background"** section. You can choose between a solid color, a gradient, or an image background. ### Fragment Layouts Fragments can have different layouts. When clicking on a fragment, the sidebar will display the available layouts. You can switch between layouts by clicking on one of the layout thumbnails. The fragment will automatically update to reflect the new layout. Interestingly, your content will not be deleted when you switch layouts. This allows you to quickly experiment with different layouts without having to redo all the work. ### Fragment Properties Fragments consist of properties that can be edited. Editing those properties has never been easier. Simply hover over the fragment and look for outlines indicating a property. By clicking on the property, you can edit its value. Some properties can even be deleted by pressing the **"Backspace"** or **"Delete"** key on your keyboard. A list of available fragment properties: * **Text** — Text properties are modified by clicking on them. Some fields allow for rich text editing, while others require plain text only. * **Number** — Number properties are modified by clicking on the **"ruler"** icon in the right corner of a fragment. * **Link** — Link properties are modified by clicking on the **"link"** icon in the right corner of a fragment. You can link to internal pages or external URLs. * **Media (Image/Video)** — Media properties are modified by clicking on them. * **Icon** — Icon properties are modified by clicking on them. * **Fragment** — Fragment properties are modified by clicking on them. * **Fragment List** — Fragment list properties are modified by clicking on them. They allow you to add multiple fragments of the same type (or different types). * **Data** — Data properties are modified by clicking on the **"data"** icon in the right corner of a fragment. The selected data source will be used to populate the fragment with data. Some fragments may have a **"refresh"** icon in the left corner. This button indicates that the fragment can be replaced by another fragment and allow you to be more flexible when designing your site. In most cases, it is possible to change the order of a fragment. This can be done by clicking one of the **"up"** or **"down"** arrows when a fragment is selected. This is especially helpful to move section fragments up and down the page, or move fragments inside a Fragment List. # Copy fragment You may find yourself in a situation where you want to copy a fragment and paste it in another location. Copying a fragment is as simple as selecting the fragment, and using the well-known key combination **Ctrl + C** (or **Cmd + C** on Mac). You can then paste the fragment using **Ctrl + V** (or **Cmd + V** on Mac) in another location. In case you want fragments to stay in sync (i.e. when you edit one fragment, the other fragment updates automatically), please refer to [templates](/editor/templates). # Delete fragment To delete a fragment, you can click the **"trash"** icon in the sidebar. Alternatively, you can select the fragment and press the **"Delete"** or **"Backspace"** key on your keyboard. # Pages Source: https://docs.fragmentor.io/editor/pages Fragmentor defines two types of pages: regular pages and CMS pages. * **Page** — Regular pages are ideal for static content that does not change often. * **CMS Page** — CMS pages are specifically designed to handle dynamic content automatically. In practice, the only difference between the two is that CMS pages contain an additional **"Context"** field that refers to a CMS item. This CMS item is used to populate the page with dynamic content. In fact, every fragment with a data source set to **"Automatic"**, will use the linked CMS item to fetch the relevant data. This is especially powerful when used in conjunction with [templates](/editor/templates.mdx). # Create Page To create a new page, click on the **"+"** button on the "Pages" tab. All pages are uniquely defined by a page slug (i.e. the URL path). For instance, a page with the slug `about` will be accessible at `yourdomain.com/about`. If needed, you can select a template to be used on the page. Hit the **"Create Page"** button to create the page. # Edit Page Now that a new page was created, you can start adding fragments to it. First, select the page you would like to edit. Once you have the page selected, simply drag and drop fragments from the left sidebar into the main area of the editor. You can edit the page's settings by click the **"Gear Icon"** next to the page name. Here, you can update the page's slug, as well as its SEO settings (title, description, image). You can also inject custom code into the `
` or `` tags of the page. # Templates Source: https://docs.fragmentor.io/editor/templates Templates are a powerful way to create reusable page structures. They allow you to define a layout and set of fragments that can be applied to multiple pages, ensuring consistency across your site and saving time when creating new pages. Fragments that are part of a template are synchronized across pages using that template. This means that if you update a fragment in the template, all pages using that template will automatically reflect those changes. # Create Template To create a new template, navigate to the **"Templates"** tab in the editor and click on the **"layout"** button in the sidebar. You will be shown a list of templates you have already created (if any). Click on the **"+"** button to create a new template. # Edit Template Click any of the templates you created to start editing. When a template is selected, you notice a **"Placeholder"** box in your canvas. The placeholder indicates where the actual page content will be rendered. You can add fragments above the placeholder, or below it. Fragments above the placeholder will render above your page content, and fragments below the placeholder will render below your page content. # Assign Template In order to actually use a template, you need to assign it to a page. This can be done through your page's settings. By default, pages do not use any template. Remember that one template can be used on multiple pages. They are often used for [CMS pages](/editor/cms-pages), but they can also be used to synchronize your navigation and footer across multiple static pages. # Delete Template To delete a template, select the template and click the **"trash"** icon in the sidebar. Please note that deleting a template does not delete any pages that were using that template. Those pages will simply no longer be linked to the template you deleted. # Themes Source: https://docs.fragmentor.io/editor/themes A theme defines the overall look of your website. It consists of global styles (e.g. colors, typography, spacing) and element style (e.g. button, badge, card, input). By editing one single theme, you can change the appearance of your entire website, while making sure everything remains consistent. # Edit Theme To edit a theme, navigate to the **"Theme"** tab in the editor by clicking the **"color swatches"** icon in the sidebar. At the top of the tab, you can select the theme you would like to edit. ## Global Global styles are general settings, and can be compared to CSS variables. Changing a global style will affect all elements that use that global style. Here, you can configure: * **Border** — Set a global border radius and border width. * **Colors** — Define a color palette for your website. You can pick colors from this palette when editing element styles. * **Typography** — Set global font families, sizes, weights, and line heights for headings, paragraphs and links. * **Spacing** — Define a spacing scale that can be used throughout your website. This ensures consistent spacing between different elements. ## Elements Element styles allow you to customize the appearance of specific UI components. The available elements include: * **Badge** — Small piece of text that is used to highlight new or important information. * **Button** — Clickable button that can be used to trigger an action. * **Card** — Container that can hold various types of content. * **Input** — Form input field that can be used to collect user data. If you are familiar with CSS, you will feel right at home here. You can edit most of the CSS properties. Properties that are marked with a yellow dot are active/modified. Properties that are not marked with a dot are using the default value. By clicking on the dot, you can reset the property to its default (unused) value. Some elements have different states. For instance, a button has a normal state, but also a hover state (when the user hovers their mouse over the button) and an active state (when the button is being clicked). You can switch between those states and edit the properties for each state individually. # Duplicate Theme It is possible to create multiple themes and experiment with different looks. To duplicate a theme, click the **"dropdown"** icon next to the theme name, at the very top of the **"Theme"** tab. Select the theme you would like to duplicate, and press the **"Duplicate"** button. # Select Primary Theme Each project can only have one active primary theme. This theme will be applied to all fragments, unless a fragment is assigned a different theme through its settings (see [fragments](/editor/fragments)). Click one of the themes you created, and press the **"Move Primary"** button to set it as the project's primary theme. # Introduction Source: https://docs.fragmentor.io/introduction # Plugins Source: https://docs.fragmentor.io/plugins/overview Plugins are extensions that allow you to add certain functionality to your site. Plugins can bring new fragments, add code to your site, or provide CMS information. # Install Plugin To install a plugin, navigate to the **"Plugins"** tab in your project settings. Several plugins are available here, and more are added on a regular basis. Click on a plugin to view more information about it, and press the toggle button in the top right to activate or deactivate it. When activating a plugin, you may be prompted to provide additional information. For instance, the Tebex plugin requires you to enter your Public API key, so it can fetch data from your Tebex store (i.e. CMS data). # Available Plugins We have a variety of plugins available. Some of them require additional documentation which you can find here. * [Tebex](/plugins/tebex) # Tebex Source: https://docs.fragmentor.io/plugins/tebex Tebex is an all-in-one monetization platform designed to grow your gaming revenue streams. It is used by gaming servers and asset creators to sell digital products, subscriptions, and services to their community. # Configuration When installing the plugin, your public Tebex API key is required. # Setup In order to setup the Tebex plugin correctly, please carefully go through the following steps.