Fragments
Definition
Fragments are reusable components that can be added to pages or templates. Some fragments act as section (i.e. they can be added on a page or template directly), while other fragments are children of those sections (i.e. they cannot be added directly but have to exist within another fragment).
Add Fragments
In order to insert or add a fragment to a page or template, open the Insert pane from the sidebar. A list of available (section) fragments will appear. In case you have plugins installed, you may see additional fragments provided by those plugins.
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 the fragment to add it at the bottom of the page/template.
Edit Fragments
After adding a fragment, it is time to make it yours! By clicking on the fragment, you can access its settings and customize its content, appearance, and behavior to fit your needs.
Fragment Layouts
Fragmentor was built to make things as easy as possible. Each fragment has a number of different layouts. You can switch between these layouts to change the structure and appearance of the fragment without losing any of your content. This feature allows you to experiment without having to redo all the work!
Simply click a fragment to select it, then watch the sidebar change to show the available fragment options. Among those options, you should see a list of layout thumbnails. Click any of those thumbnails to change the current layout.
Fragment Properties
Fragments consist of properties that can be edited. These properties will either show up in the sidebar (Beginner mode) or have to be selected from the preview (Advanced mode). Below is a list of all available properties.
- Text Edit text content (e.g. paragraphs, headers). Some fields allow for rich text editing, while others require plain text.
- Number Edit numerical values (e.g. number of columns, rating).
- Link Edit hyperlinks to other pages or external websites.
- Media Add or change images/videos within the fragment. Images can be uploaded, while videos require a YouTube link. Inside the editor you have a number of other options to modify the media such as setting its aspect ratio, position and opacity.
- Icon Edit icons by picking from the FontAwesome library.
- Date Time Pick a date and time using a calendar picker.
- Fragment Modify nested fragments. Some nested fragments can be replaced with other fragments.
- Fragment List Add, remove or reorder a set of nested fragments within a list structure.
- Data Bind dynamic data sources to your fragment.
Delete Fragments
To delete a fragment, you have to select it first by clicking on it from the preview. Once selected, you can click the Delete button at the top of the sidebar next to the fragment's name.
Recap
We covered the basics of fragments: how to add, edit and delete them.
FAQ
What are fragments?
Fragments are reusable components that make up pages. Think of them as carefully designed building blocks.
How to copy fragments?
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.
Can I create fragments that stay in sync?
Yes, if you would like fragments to stay in sync, please refer to templates.