How to add favorites and newsletter subscription
← BackFavorites — a page with the "Favorites" module, a heart in the header and buttons on cards. Subscription — a form with the "Subscribe" rule and a subscriber list.
Favorites
- Create a section, e.g.
/izbrannoe, and in the "Module" field via "Select" set "Favorites". Cards on it are rendered by the section's "Object preview template". - Add the "Favorites" informer to the header and in its settings specify "Favorites page address". It shows a heart and the number of marked products.
- The heart on a tile is a button with the attribute
data-fav-toggle="<:ID:>"in the preview template. On the object page — an "Action button" with the actionAdd to favorites.
For a guest, favorites are stored in the session, for a logged-in user — in the account. On login, the guest list is transferred to the account.
Subscription
- Build the subscription form: an E-mail field, optionally a consent checkbox and an "Action button" with an action, e.g.
Subscribe; Hide form; Message{Thank you!}. - Create a section with the "Subscribers" module and hide it from the menu: it contains the list of addresses and CSV export.
- To have the subscription banner on all pages, add the "Subscription" informer and specify "Subscription form address". There you can also set the title, subtitle, image and position.
The "Subscribe" rule works in any form: it can also be added to a request button so the client gets into the list as well. The module collects addresses and unsubscribe links, while the mailings themselves are sent separately — export the list to CSV.
If it didn't work
- "Subscription is not configured on this site". The site has no subscribers module — create the section from step 2.
- "Please enter a valid e-mail". The form has no E-mail field or it's filled in with an error.
- The heart on the tiles didn't appear. The button must be inserted into the preview template manually — it's not added automatically.
See also
Tips for working with the builder
The "Help" section is made for those who are building a website on "Pervaya Liniya" for the first time. It contains answers to common questions: how to create a website, what to write in the fields, how to edit texts and photos, how to connect your own domain, and how to set up sections. The materials will help you figure things out without contacting support.
The builder is simple: you fill in the fields on the creation page, and then edit the content directly on the finished website. If something does not work or is unclear, check the relevant help item. The instructions are written in plain language and describe every step.
In Help you will find answers to questions:
- how to come up with a website address and what to do if the name is taken;
- how to change the title, description, and other texts on the page;
- how to add products, services, or request forms;
- how to connect your own domain instead of an address on firstline.com.ua;
- how to set up sections and modules for your business needs.
If you cannot find the answer you need, use the feedback form — we will help you figure it out. The section is updated so that you can always find current information about working with the builder.
