zesty.io

Product

Use Cases

Integrations

Learn

Creating a component in Freestyle

This guide outlines the essential steps to create a custom Freestyle component in Zesty.io. It covers creating an HTML file in Parsley, capturing and using an image for the component, registering the component in Freestyle with necessary details, and verifying its functionality. Ideal for users seeking a straightforward approach to enhance their Zesty.io projects with custom components.

First, Install the Freestyle App to your instance from our marketplace. Refer to installation guide here.

1. Create an HTML snippet

#

Start by navigating to the manager sidebar. Under the code tab, you will see a blue button that indicates 'Create File' with a plus icon. Click the button, and a dialog box will appear. Choose a file type from the list and set it to Snippet (html). Input your desired file name like /sample, you can also add the file inside a folder like this: /folder/sample . Click the "Create File" button, then add your HTML code and hit save.

Create HTML

2. Take a snapshot of the component

#

Navigate to the Media tab in the sidebar, then click the Upload button that appears in the upper right corner of the screen. Select your desired image, click "Open," and then click "Done." Verify that you have successfully uploaded your image by browsing the media content. Hover over the newly uploaded image and click the "Copy URL" button to save the image link to your clipboard. Save the link address in your notepad, as you may need it in the later steps.

Note: The image you choose will serve as the thumbnail for your component.

Image Snapshot

3. Register component in Freestyle

#

Navigate through Freestyle by clicking on "Apps" > "Freestyle". In the Freestyle interface, in the right corner, click the Components tab and click the orange plus icon. A dialog box will appear and you can set the details of your component.

Note: You might not be able to see the Freestyle app in the menu if you haven’t installed it on your instance.

  • Name Field - Specify the desired name for your component.
  • Classes Field - Set classes for your component.
  • Type Field - By default it is set to component. There is no need to change this type of field.
  • Droppable - Can be set to either true or false. By default it is set to false.
  • Thumbnail Preview URL - Paste here the link of the image that you copied earlier
  • Import HTML - Import the HTML using Parsley

Register Component

4. Verify the newly created component

#

Check if the component is properly working by dragging and dropping it to the canvas.

Verify Component

Connect with Content Experts

Book a free 15-minute consultation with a content expert. Discuss your application, pain points and requirements. Understand how Zesty's lower total cost of ownership, features, functionality can elevate your business by creating extraordinary digital experiences.

Trusted By

zesty customer logo Sonyzesty customer logo Rocket Leaguezesty customer logo Singlifezesty customer logo Acornszesty customer logo Phoenix Sunszesty customer logo Wattpadzesty customer logo Corner Shopzesty customer logo Bjs

Enter your details to connect with a Content Expert

First Name

Last Name

Email

Phone (optional)

Company

Please tell us about your project (optional)

G2 MOMENTUM LEADER

zesty customer logo zesty customer logo zesty customer logo zesty customer logo